This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34000] GCC pedwarns about use of static inline functions from system headers in extern inline functions
- From: "lennox at cs dot columbia dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2008 19:51:44 -0000
- Subject: [Bug c/34000] GCC pedwarns about use of static inline functions from system headers in extern inline functions
- References: <bug-34000-4084@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from lennox at cs dot columbia dot edu 2008-02-11 19:51 -------
A discussion on comp.std.c
<http://groups.google.com/group/comp.std.c/browse_thread/thread/8118ae4c53a4de60>
indicates that this is indeed a constraint violation; the poster thinks that
system headers should be fixed.
I don't think it would be possible to write a fixincludes fix to turn static
inlines into GNU89 or C99 extern inlines, however, so I think suppressing the
pedwarn for system headers is the best option.
--
lennox at cs dot columbia dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|GCC pedwarns about use of |GCC pedwarns about use of
|static inline functions in |static inline functions from
|extern inline functions |system headers in extern
| |inline functions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34000