Mailinglist Archive: opensuse-bugs (13466 mails)
| < Previous | Next > |
[Bug 334829] GCC: warning: C99 inline functions are not supported; using GNU89
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Thu, 18 Oct 2007 08:27:43 -0600 (MDT)
- Message-id: <20071018142743.5624B245269@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=334829#c1
Philipp Thomas <pth@xxxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Philipp Thomas <pth@xxxxxxxxxx> 2007-10-18 08:27:42 MST ---
It's rather easy to see what's wrong. The compiler options (CFLAGS) contains
-std=gnu99 which means ISO C99 plus GNU extensions. Now part of C99 are
definitions of inline that differ from the GNU extensions and that gcc 4.2.1
does not support and thus warns about. As CFLAGS also has -Werr, meaning 'treat
warnings like error', compilations breaks.
The warning also tells you how to get rid of that warning, either add
-fgnu89-inline to the compiler flags or (better) change the code in question to
use something like the following:
extern inline
#ifdef __GNU_STDC_INLINE__
__attribute__((__gnu_inline__))
#endif
foo(...
And yes, it is an upstream issue, but of GNU parted, not gcc.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Philipp Thomas <pth@xxxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Philipp Thomas <pth@xxxxxxxxxx> 2007-10-18 08:27:42 MST ---
It's rather easy to see what's wrong. The compiler options (CFLAGS) contains
-std=gnu99 which means ISO C99 plus GNU extensions. Now part of C99 are
definitions of inline that differ from the GNU extensions and that gcc 4.2.1
does not support and thus warns about. As CFLAGS also has -Werr, meaning 'treat
warnings like error', compilations breaks.
The warning also tells you how to get rid of that warning, either add
-fgnu89-inline to the compiler flags or (better) change the code in question to
use something like the following:
extern inline
#ifdef __GNU_STDC_INLINE__
__attribute__((__gnu_inline__))
#endif
foo(...
And yes, it is an upstream issue, but of GNU parted, not gcc.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |