From: Bruno Haible Date: Tue, 20 Feb 2007 00:10:42 +0000 (+0000) Subject: Avoid some "gcc -Wmissing-prototypes" warnings on mingw. X-Git-Tag: cvs-readonly~1012 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=3f9c65b8b5b5228eb60d9167f9550e7d117236a8;p=gnulib.git Avoid some "gcc -Wmissing-prototypes" warnings on mingw. --- diff --git a/ChangeLog b/ChangeLog index 6c51206fd..7ddde7a75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-02-19 Bruno Haible + * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc + warnings. + Reported by Ben Pfaff . + +2007-02-19 Bruno Haible + * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail from mingw users. diff --git a/lib/string_.h b/lib/string_.h index 14e781730..2316ad0e1 100644 --- 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@