summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-06-09 12:19:16 (GMT)
committerBrad King <brad.king@kitware.com>2005-06-09 12:19:16 (GMT)
commita7fcb0741854c9759cc64cb2cf482876c01230fd (patch)
tree1356b3339fea224454daf82a34b738d6f3b3f8c0 /Source
parent65ef62c697e3dd7d76a095054a0d3b175ba65269 (diff)
downloadCMake-a7fcb0741854c9759cc64cb2cf482876c01230fd.zip
CMake-a7fcb0741854c9759cc64cb2cf482876c01230fd.tar.gz
CMake-a7fcb0741854c9759cc64cb2cf482876c01230fd.tar.bz2
COMP: Disable more warnings.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/Configure.h.in31
1 files changed, 29 insertions, 2 deletions
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in
index a9bc7e7..4783b56 100644
--- a/Source/kwsys/Configure.h.in
+++ b/Source/kwsys/Configure.h.in
@@ -25,10 +25,37 @@
# define @KWSYS_NAMESPACE@_EXPORT
#endif
-/* Disable useless warnings. */
+/* Enable warnings that are off by default but are useful. */
+#if !defined(@KWSYS_NAMESPACE@_NO_WARNING_ENABLE)
+# if defined(_MSC_VER)
+# pragma warning ( default : 4263 ) /* no override, call convention differs */
+# endif
+#endif
+
+/* Disable warnings that are on by default but occur in valid code. */
#if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE)
# if defined(_MSC_VER)
-# pragma warning (disable: 4514) /* Unreferenced inline function removed. */
+# pragma warning (disable: 4097) /* typedef is synonym for class */
+# pragma warning (disable: 4127) /* conditional expression is constant */
+# pragma warning (disable: 4244) /* possible loss in conversion */
+# pragma warning (disable: 4251) /* missing DLL-interface */
+# pragma warning (disable: 4305) /* truncation from type1 to type2 */
+# pragma warning (disable: 4309) /* truncation of constant value */
+# pragma warning (disable: 4514) /* unreferenced inline function */
+# pragma warning (disable: 4706) /* assignment in conditional expression */
+# pragma warning (disable: 4710) /* function not inlined */
+# pragma warning (disable: 4786) /* identifier truncated in debug info */
+# endif
+#endif
+
+/* MSVC 6.0 in release mode will warn about code it produces with its
+ optimizer. Disable the warnings specifically for this
+ configuration. Real warnings will be revealed by a debug build or
+ by other compilers. */
+#if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE_BOGUS)
+# if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
+# pragma warning ( disable : 4701 ) /* Variable may be used uninitialized. */
+# pragma warning ( disable : 4702 ) /* Unreachable code. */
# endif
#endif