This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/34000] GCC pedwarns about use of static inline functions from system headers in extern inline functions



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]