Avoid some "gcc -Wmissing-prototypes" warnings on mingw.
authorBruno Haible <bruno@clisp.org>
Tue, 20 Feb 2007 00:10:42 +0000 (00:10 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 20 Feb 2007 00:10:42 +0000 (00:10 +0000)
ChangeLog
lib/string_.h

index 6c51206..7ddde7a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-02-19  Bruno Haible  <bruno@clisp.org>
 
+       * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
+       warnings.
+       Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2007-02-19  Bruno Haible  <bruno@clisp.org>
+
        * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
        from mingw users.
 
index 14e7817..2316ad0 100644 (file)
 #ifndef _GL_STRING_H
 #define _GL_STRING_H
 
+/* This #pragma avoids a warning with "gcc -Wmissing-prototypes" on some
+   mingw systems.  */
+#ifdef __GNUC__
+# pragma GCC system_header
+#endif
+
 #include @ABSOLUTE_STRING_H@