From 3f9c65b8b5b5228eb60d9167f9550e7d117236a8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 20 Feb 2007 00:10:42 +0000 Subject: [PATCH] Avoid some "gcc -Wmissing-prototypes" warnings on mingw. --- ChangeLog | 6 ++++++ lib/string_.h | 6 ++++++ 2 files changed, 12 insertions(+) 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@ -- 2.11.0