Commit e02d66e8 authored by Brad King's avatar Brad King
Browse files

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.
parent f5a86a83
...@@ -78,6 +78,10 @@ public: ...@@ -78,6 +78,10 @@ public:
#if defined(_MSC_VER) #if defined(_MSC_VER)
# pragma warning (push,1) # pragma warning (push,1)
#endif #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 #ifndef CMAKE_NO_ANSI_STREAM_HEADERS
# include <fstream> # include <fstream>
...@@ -108,6 +112,10 @@ public: ...@@ -108,6 +112,10 @@ public:
#include <set> #include <set>
#include <deque> #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) #if defined(_MSC_VER)
# pragma warning(pop) # pragma warning(pop)
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment