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.
This commit is contained in:
Brad King 2009-06-12 11:05:02 -04:00
parent f5a86a83d3
commit e02d66e89e
1 changed files with 8 additions and 0 deletions

View File

@ -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