From aefef5fff71834caabd0ec126bea6d072b7705fa Mon Sep 17 00:00:00 2001 From: Bill Hoffman <bill.hoffman@kitware.com> Date: Tue, 9 Jun 2009 15:18:51 -0400 Subject: [PATCH] STYLE: suppress warnings for borland --- hashtable.hxx.in | 4 ++++ kwsysDateStamp.cmake | 2 +- testAutoPtr.cxx | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hashtable.hxx.in b/hashtable.hxx.in index 0580e511..6751a23c 100644 --- a/hashtable.hxx.in +++ b/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/kwsysDateStamp.cmake b/kwsysDateStamp.cmake index f2ee12d8..2f56a098 100644 --- a/kwsysDateStamp.cmake +++ b/kwsysDateStamp.cmake @@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2009) SET(KWSYS_DATE_STAMP_MONTH 06) # KWSys version date day component. Format is DD. -SET(KWSYS_DATE_STAMP_DAY 05) +SET(KWSYS_DATE_STAMP_DAY 09) diff --git a/testAutoPtr.cxx b/testAutoPtr.cxx index c6515d90..4e261171 100644 --- a/testAutoPtr.cxx +++ b/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 -- GitLab