Ethereal-dev: Re: [ethereal-dev] Problem with packet-stat.c

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 18 Nov 1999 12:07:27 -0800 (PST)
> The man page says of "-pedantic"

	...

> so perhaps that'll catch GNU C extensions and flag them - except for the
> few extensions we use safely, e.g. "__attribute__(format, ...)", used to
> tell GCC 2.x that a program has a "printf"-like calling sequence, which
> we use only if "__GNUC__" is defined and is equal to 2.

Unfortunately, that doesn't include "except for the extensions that GLib
uses in its header files, such as 'inline'" - a "-pedantic" compilation
I'm doing is bitching about "inline" in "glib.h", even though that use
appears to be protected:

	G_INLINE_FUNC guint	g_bit_storage (guint number);
	#ifdef G_CAN_INLINE
	G_INLINE_FUNC guint
	g_bit_storage (guint number)
	{
		...
	}

Oh, well.  Nevertheless, I'll check over the *other* complaints it's
making, and see if they can't be cleaned up....