From e02d66e89ee6a65397dd4cf61f3b92d28bf0f81a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 12 Jun 2009 11:05:02 -0400 Subject: [PATCH] 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. --- Source/cmStandardIncludes.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 5f65fc529..ea0b83d74 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 @@ -108,6 +112,10 @@ public: #include #include +#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