Ethereal-dev: Re: [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: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sun, 1 Feb 2004 12:40:43 -0800
On Mon, Jan 19, 2004 at 11:37:57PM +0100, Olivier Biot wrote:
> Mmh... I currently cannot compile GLib 1.x but I assume this also
> applies to GLib 1.x as it (still) applies to GLib 2.0. The only way to
> know is by looking at the definition of g_assert() and
> g_assert_not_reached(). I expect those macros are identical in both
> GLib versions.

It appears to work with GLib 1.2[.x], although you change glib.h rather
than gmacros.h.

However, there's still a lot of -pedantic noise:

	In file included from /usr/local/include/glib-1.2/glib.h:66,
	                 from wtap-int.h:30,
                 from airopeek9.c:30:
	/usr/local/lib/glib/include/glibconfig.h:43: warning: ANSI C does not
	    support `long long'

		...

	In file included from wtap-int.h:30,
	                 from airopeek9.c:30:
	/usr/local/include/glib-1.2/glib.h:1573: warning: ANSI does not permit
	   the keyword `inline'