From: Bruno Haible Date: Tue, 20 Feb 2007 00:10:42 +0000 (+0000) Subject: Avoid some "gcc -Wmissing-prototypes" warnings on mingw. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f9c65b8b5b5228eb60d9167f9550e7d117236a8;p=pspp Avoid some "gcc -Wmissing-prototypes" warnings on mingw. --- diff --git a/ChangeLog b/ChangeLog index 6c51206fd4..7ddde7a75a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/lib/string_.h b/lib/string_.h index 14e781730b..2316ad0e1a 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@