[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] extern-inline: update commentary about GCC bugs
From: |
Paul Eggert |
Subject: |
[PATCH] extern-inline: update commentary about GCC bugs |
Date: |
Fri, 14 Nov 2014 12:11:58 -0800 |
* m4/extern-inline.m4: Add another GCC bug number to comments.
---
ChangeLog | 5 +++++
m4/extern-inline.m4 | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1ebd826..16dc620 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-14 Paul Eggert <address@hidden>
+
+ extern-inline: update commentary about GCC bugs
+ * m4/extern-inline.m4: Add another GCC bug number to comments.
+
2014-11-13 Daiki Ueno <address@hidden>
gen-uni-tables: untabify
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index 7f1bb39..0edbe3c 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
+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and
+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */
#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
- <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. */
# define _GL_INLINE_HEADER_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
--
1.9.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] extern-inline: update commentary about GCC bugs,
Paul Eggert <=