diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 30d1a7f64..51680148e 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -34,7 +34,9 @@ #endif #ifdef __BORLANDC__ -#pragma warn -8030 /* Temporary used for parameter */ +# pragma warn -8030 /* Temporary used for parameter */ +# pragma warn -8027 /* 'for' not inlined. */ +# pragma warn -8026 /* 'exception' not inlined. */ #endif #ifdef __ICL diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index 9adf5c008..957210f2d 100644 --- a/Source/kwsys/hashtable.hxx.in +++ b/Source/kwsys/hashtable.hxx.in @@ -36,6 +36,10 @@ * purpose. It is provided "as is" without express or implied warranty. * */ +#ifdef __BORLANDC__ +# pragma warn -8027 /* 'for' not inlined. */ +# pragma warn -8026 /* 'exception' not inlined. */ +#endif #ifndef @KWSYS_NAMESPACE@_hashtable_hxx #define @KWSYS_NAMESPACE@_hashtable_hxx diff --git a/Source/kwsys/testAutoPtr.cxx b/Source/kwsys/testAutoPtr.cxx index aa44cb6f4..2eb0dad6b 100644 --- a/Source/kwsys/testAutoPtr.cxx +++ b/Source/kwsys/testAutoPtr.cxx @@ -13,7 +13,10 @@ =========================================================================*/ #include "kwsysPrivate.h" #include KWSYS_HEADER(auto_ptr.hxx) - +#ifdef __BORLANDC__ +# pragma warn -8027 /* 'for' not inlined. */ +# pragma warn -8026 /* exception not inlined. */ +#endif // Work-around CMake dependency scanning limitation. This must // duplicate the above list of headers. #if 0