J
jacob navia
Le 01/10/10 21:23, Keith Thompson a écrit :
[snip explanation]
Sure. As you say yourself, this is counter-intuitive and only histerical
reasons are proposed.
I agree that "-Wall" is mis-named. It's probably for historical
reasons. In any case, the documentation explains what it does and gives
a good overview of which warnings it enables and why.
As for needing an optimization flag, I suppose it does seem
counterintuitive if you haven't thought about what the compiler
does internally.
[snip explanation]
Bottom line: Enabling optimization typically gives you better
warnings. It's not immediately obvious, but it's something you
should only have to learn once.
Sure. As you say yourself, this is counter-intuitive and only histerical
reasons are proposed.