summaryrefslogtreecommitdiff
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-12 11:05:02 -0400
committerBrad King <brad.king@kitware.com>2009-06-12 11:05:02 -0400
commite02d66e89ee6a65397dd4cf61f3b92d28bf0f81a (patch)
tree9be04be115b85691392d0491550af76ba16452d8 /Source/cmStandardIncludes.h
parentf5a86a83d3bc325abd27ecbba59beddc15ad0da4 (diff)
downloadcmake-e02d66e89ee6a65397dd4cf61f3b92d28bf0f81a.tar.gz
COMP: Block warnings in Borland system headers
In Release builds the Borland compiler warns about code in its own system headers. This blocks the warnings by disabling them where the headers are included.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 5f65fc5297..ea0b83d74e 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -78,6 +78,10 @@ public:
#if defined(_MSC_VER)
# pragma warning (push,1)
#endif
+#if defined(__BORLANDC__)
+# pragma warn -8008 /* condition is always false (RESET BELOW!) */
+# pragma warn -8066 /* unreachable code (RESET BELOW!) */
+#endif
#ifndef CMAKE_NO_ANSI_STREAM_HEADERS
# include <fstream>
@@ -108,6 +112,10 @@ public:
#include <set>
#include <deque>
+#if defined(__BORLANDC__)
+# pragma warn .8008 /* condition is always false (disabled above) */
+# pragma warn .8066 /* unreachable code (disabled above) */
+#endif
#if defined(_MSC_VER)
# pragma warning(pop)
#endif