LEGO wrote:
A question, what do I have to change to compile with -pedantic?
Nothing, at least on OS X, it appears.
Another question might be "what do we have to change so that compiling with -pedantic doesn't produce any more warnings than compiling without -pedantic does?" I've fixed some of the warnings, but not all - there are a bunch of warnings about converting between "char *" and "{guchar *, guint8 *, unsigned char *)", for example.
In addition, the configure script option that enables -pedantic also enables a number of other options, which cause other warnings, such as warnings about function declarations in system or third-party package headers that don't have prototype arguments. There's at least one case where either a GLib or GTK+ header (I forget which) declares a function without a prototype (in a deliberate attempt to avoid function prototype checking), which produces a warning with -pedantic, at least with the compiler I have). I think I've seen on at least some versions of Solaris declarations in X11 headers that have no prototypes.
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. WhoPowered by MHonArc 2.6.10