From b81f09e341c5bfe1f3ba436f732135b6ad1c19d6 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 9 Jun 2009 15:18:51 -0400 Subject: [PATCH] STYLE: suppress warnings for borland --- Source/cmStandardIncludes.h | 4 +++- Source/kwsys/hashtable.hxx.in | 4 ++++ Source/kwsys/testAutoPtr.cxx | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) 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