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