Ethereal-dev: [Ethereal-dev] Glib noise with -pedantic

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Mon, 19 Jan 2004 11:15:46 +0100
Hi list,

I realized that most gcc warnings for "braces within expressions" are
introduced by g_assert() and similar macros.

You can get rid of these annoying warnings by prefixing the definition of
G_STMT_START in the GLib gmacros.h header file with "__extension__" (for the
GCC case):

#define G_STMT_START __extension__ (void)(
                     ^^^^^^^^^^^^^

This of course can only be done if you have access to the GLib include
directory.

I already informed the GNOME people about this.

Regards,

Olivier