From: Paul Eggert Date: Fri, 14 Nov 2014 20:10:50 +0000 (-0800) Subject: extern-inline: update commentary about GCC bugs X-Git-Tag: v1.0~7255 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=92b60e61666f008385d9b7f7443da17c7a44d1b1;p=gnulib.git extern-inline: update commentary about GCC bugs * m4/extern-inline.m4: Add another GCC bug number to comments. --- diff --git a/ChangeLog b/ChangeLog index 1ebd82662e..16dc620960 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-14 Paul Eggert + + extern-inline: update commentary about GCC bugs + * m4/extern-inline.m4: Add another GCC bug number to comments. + 2014-11-13 Daiki Ueno gen-uni-tables: untabify diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 7f1bb397c4..0edbe3c81c 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 @@ -74,6 +74,11 @@ AC_DEFUN([gl_EXTERN_INLINE], # define _GL_EXTERN_INLINE static _GL_UNUSED #endif +/* In GCC, suppress bogus "no previous prototype for 'FOO'" + and "no previous declaration for 'FOO'" diagnostics, + when FOO is an inline function in the header; see + and + . */ #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ # define _GL_INLINE_HEADER_CONST_PRAGMA @@ -81,10 +86,6 @@ AC_DEFUN([gl_EXTERN_INLINE], # define _GL_INLINE_HEADER_CONST_PRAGMA \ _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") # endif - /* Suppress GCC's bogus "no previous prototype for 'FOO'" - and "no previous declaration for 'FOO'" diagnostics, - when FOO is an inline function in the header; see - . */ # define _GL_INLINE_HEADER_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \