summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-18 15:17:20 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-18 15:17:20 (GMT)
commit2e9acb6d4335064f5c742e5f96eac604f1abfa23 (patch)
treed0e36fc7a9ea7074fdb2a6464985f336208fe6bf /Source/kwsys
parentcd7bde80bf3c3e141a92058ad033833066da509b (diff)
parent1f7de54346142f05aef5814ee16754fba017b521 (diff)
downloadCMake-2e9acb6d4335064f5c742e5f96eac604f1abfa23.zip
CMake-2e9acb6d4335064f5c742e5f96eac604f1abfa23.tar.gz
CMake-2e9acb6d4335064f5c742e5f96eac604f1abfa23.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SharedForward.h.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/kwsys/SharedForward.h.in b/Source/kwsys/SharedForward.h.in
index c6f345f..f22fa58 100644
--- a/Source/kwsys/SharedForward.h.in
+++ b/Source/kwsys/SharedForward.h.in
@@ -65,6 +65,15 @@
See the comments below for specific explanations of each macro.
*/
+/* Disable -Wcast-qual warnings since they are too hard to fix in a
+ cross-platform way. */
+#if defined(__clang__) && defined(__has_warning)
+# if __has_warning("-Wcast-qual")
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wcast-qual"
+# endif
+#endif
+
/*--------------------------------------------------------------------------*/
/* Full path to the directory in which this executable is built. Do
@@ -917,6 +926,13 @@ static int @KWSYS_NAMESPACE@_shared_forward_to_real(int argc, char** argv_in)
return 1;
}
+/* Restore warning stack. */
+#if defined(__clang__) && defined(__has_warning)
+# if __has_warning("-Wcast-qual")
+# pragma clang diagnostic pop
+# endif
+#endif
+
#else
# error "@KWSYS_NAMESPACE@/SharedForward.h should be included only once."
#endif