changeset 8206:c7bf63af2713

Avoid some "gcc -Wmissing-prototypes" warnings on mingw.
author Bruno Haible <bruno@clisp.org>
date Tue, 20 Feb 2007 00:10:42 +0000
parents 0b4e2e66e677
children 717accda417a
files ChangeLog lib/string_.h
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/string_.h
+++ b/lib/string_.h
@@ -19,6 +19,12 @@
 #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@