compiler warnings

Nick Schermer nickschermer at gmail.com
Sat Dec 27 00:56:19 CET 2008


2008/12/26 Brian J. Tarricone <bjt23 at cornell.edu>:
> With -Wignored-qualifiers, the above code will throw a warning on the
> first assignment.  Then you fix it by adding 'const', and then you get
> an error on the second assignment and realise, oh, crap, I'm not
> supposed to be modifying that variable.  So it's a useful warning, but
> it just appears that (with gcc 4.3 at least), it's way too "chatty".

Yeah, well I think we should leave it on. It's easy to silence by
adding a (gchar *) in front of the text (bit ugly tho). It's a pitty
some warnings are triggered because of incorrect gtk api, but in the
end we all do this to check _our_ code and, like you said, it is
useful.

Nick



More information about the Xfce4-dev mailing list