Miscellaneous interesting things
Scott Tringali
scott.tringali at totalviewtech.com
Mon Oct 15 17:46:55 CEST 2007
Andrew Hood wrote:
> I went through the entire source over the weekend with CFLAGS containing
> "-Wuninitialized -W -Wall -Werror" ( I normally only use -Wuninitialized ).
I've been using -Wall (not -Wextra aka -W) for quite a while now. In
fact, that was one of the major reasons to recode a lot of the funny
casts in the interpreter. I think it's actually clean now, for gcc
anyway. The unused parameter can be noisy, because of callback
functions that all share a similar prototype.
Trying to compile warning clean may cause some problems. The code
required that compiles warning-clean across multiple compilers that have
different ideas of what's good and bad, can produce some really
contorted code! I tend to think it's better to standardize on one
compiler to be clean on, and gcc is a clear winner here because that's
what most people will see.
More information about the Develop
mailing list