mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
* glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In gcc version prior to 4.3 no correct C99-inline was implemented which has semantic differences to GNU inline. svn path=/trunk/; revision=6733
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2008-03-18 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
|
||||||
|
|
||||||
|
* glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
|
||||||
|
if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
|
||||||
|
gcc version prior to 4.3 no correct C99-inline was implemented which
|
||||||
|
has semantic differences to GNU inline.
|
||||||
|
|
||||||
2008-03-16 Tor Lillqvist <tml@novell.com>
|
2008-03-16 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* configure.in: Don't bother defining Autoconf variables for
|
* configure.in: Don't bother defining Autoconf variables for
|
||||||
|
@@ -101,7 +101,7 @@ G_BEGIN_DECLS
|
|||||||
# define G_INLINE_FUNC
|
# define G_INLINE_FUNC
|
||||||
# undef G_CAN_INLINE
|
# undef G_CAN_INLINE
|
||||||
#elif defined (__GNUC__)
|
#elif defined (__GNUC__)
|
||||||
# ifdef __GNUC_STDC_INLINE__
|
# if defined (__GNUC_STDC_INLINE__) || defined (__GNUC_GNU_INLINE__)
|
||||||
# define G_INLINE_FUNC extern inline __attribute__ ((__gnu_inline__))
|
# define G_INLINE_FUNC extern inline __attribute__ ((__gnu_inline__))
|
||||||
# else
|
# else
|
||||||
# define G_INLINE_FUNC extern inline
|
# define G_INLINE_FUNC extern inline
|
||||||
|
Reference in New Issue
Block a user