[Cmake-commits] [cmake-commits] king committed cmStandardIncludes.h 1.75 1.76
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jun 12 11:05:05 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv9723/Source
Modified Files:
cmStandardIncludes.h
Log Message:
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.
Index: cmStandardIncludes.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmStandardIncludes.h,v
retrieving revision 1.75
retrieving revision 1.76
diff -C 2 -d -r1.75 -r1.76
*** cmStandardIncludes.h 9 Jun 2009 19:58:52 -0000 1.75
--- cmStandardIncludes.h 12 Jun 2009 15:05:02 -0000 1.76
***************
*** 79,82 ****
--- 79,86 ----
# 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
***************
*** 109,112 ****
--- 113,120 ----
#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)
More information about the Cmake-commits
mailing list