This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33995] New: C89 warning on inline keyword when using -std=c99 or -std=gnu99
- From: "gcc-erikd at mega-nerd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2007 00:56:55 -0000
- Subject: [Bug c/33995] New: C89 warning on inline keyword when using -std=c99 or -std=gnu99
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider following trivial C program:
inline int func (int x) { return x + 3 ; }
int main (void) { return func (2) ; }
Compiling with:
gcc -std=c99 file.c -o prog
or
gcc -std=gnu99 file.c -o prog
results in the warning message:
warning: C99 inline functions are not supported; using GNU89
warning: to disable this warning use -fgnu89-inline or the gnu_inline
function attribute
The message states that inline functions are not supported using GNU89, but I
am specifically using -std of c99 and gnu99 so therefore I believe there should
be no warning.
--
Summary: C89 warning on inline keyword when using -std=c99 or -
std=gnu99
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-erikd at mega-nerd dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995