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 6c51206fd4d7140cff3812cfcada61aa68a95c89..7ddde7a75afaec140affddb08a71a0aab9559e9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 14e781730bc84434c1d06eb804b796d5065c561c..2316ad0e1a9b36f9a85c5f8a44141e59c64ff142 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@