Browse Source

COMP: Silence useless Borland inlining warning

KWSys tries not to force anything on source files that include its
headers, but Borland warning 8027 leaves us no choice when we want to
have inline function definitions.  This commit disables the warning for
the RegularExpression header and any file that includes it.
Brad King 16 years ago
parent
commit
cd147f0f71
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Source/kwsys/RegularExpression.hxx.in

+ 6 - 0
Source/kwsys/RegularExpression.hxx.in

@@ -42,6 +42,12 @@
 # define kwsys_stl @KWSYS_NAMESPACE@_stl
 #endif
 
+/* Disable useless Borland warnings.  KWSys tries not to force things
+   on its includers, but there is no choice here.  */
+#if defined(__BORLANDC__)
+# pragma warn -8027 /* function not inlined.  */
+#endif
+
 namespace @KWSYS_NAMESPACE@
 {