I don't have favorite CFLAGS. I prefer science. I use a genetic algorih to compile every package over 50 generations, profiling the speed of the survivor amongst each generation.
`-W' This is a general option similar to `-Wall' which warns about a
selection of common programming errors, such as functions which
can return without a value (also known as ``falling off the end of
the function body''), and comparisons between signed and unsigned
values. For example, the following function tests whether an un-
signed integer is negative (which is impossible, of course):
int
foo (unsigned int x)
{
if (x < 0)
return 0; /* cannot occur */
else
return 1;
}
Compiling this function with `-Wall' does not produce a warning...1
Static analysis is a piece of shit, -Wall is for faggots. You'll introduce way more bugs trying to silence the retarded warnings than you'll ever solve real problems.
A compiler is like a 4-year-old when it comes to understanding code.
Name:
Anonymous2009-06-13 16:42
You'll introduce way more bugs trying to silence the retarded warnings than you'll ever solve real problems.
[citation needed]
>>39
I think his point is that, like with Valgrind and Splint, people have a tendency to bend over backwards to get a compiler to shut up about some perfectly acceptable code.