After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605779 - [PATCH] [scanner] __extension__ can be put in front of expressions
[PATCH] [scanner] __extension__ can be put in front of expressions
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-12-31 01:34 UTC by Damien Lespiau
Modified: 2015-02-07 17:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
__extension__ can be put in front of expressions (1008 bytes, patch)
2009-12-31 01:34 UTC, Damien Lespiau
accepted-commit_now Details | Review
__extension__ can be put in front of expressions (1.02 KB, patch)
2009-12-31 14:58 UTC, Johan (not receiving bugmail) Dahlin
committed Details | Review

Description Damien Lespiau 2009-12-31 01:34:32 UTC
Created attachment 150598 [details] [review]
__extension__ can be put in front of expressions

glib uses __extension__ in macros dealing with 64 bits integer such as
GUINT64_SWAP_LE_BE().

To quote the GCC manual:
  `-pedantic' and other options cause warnings for many GNU C extensions.  You
  can prevent such warnings within one expression by writing `__extension__'
  before the expression.
Comment 1 Johan (not receiving bugmail) Dahlin 2009-12-31 14:58:44 UTC
The following fix has been pushed:
b20b019 __extension__ can be put in front of expressions
Comment 2 Johan (not receiving bugmail) Dahlin 2009-12-31 14:58:55 UTC
Created attachment 150614 [details] [review]
__extension__ can be put in front of expressions

glib uses __extension__ in macros dealing with 64 bits integer such as
GUINT64_SWAP_LE_BE().

To quote the GCC manual:
  `-pedantic' and other options cause warnings for many GNU C extensions.  You
  can prevent such warnings within one expression by writing `__extension__'
  before the expression.
Comment 3 Colin Walters 2010-01-05 15:46:35 UTC
Review of attachment 150598 [details] [review]:

Looks good, thanks!
Comment 4 André Klapper 2015-02-07 17:02:47 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]