Try using Wall instead of W W is deprecated IIRC. (As Jonathan Leffler points out in a comment W s replacement is Wextra not Wall ) Edit Wunused-variable Warn whenever a local variable or non-constant static variable is unused aside from its declaration. This warning is enabled by Wall gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/War... Edit This behavior has changed in GCC 4.4 : Uninitialized warnings do not require enabling optimization anymore, that is Wuninitialized can be used together with O0 Nonetheless, the warnings given by Wuninitialized will probably be more accurate if optimization is enabled.
Try using -Wall instead of -W. -W is deprecated IIRC. (As Jonathan Leffler points out in a comment, -W's replacement is -Wextra, not -Wall.) Edit -Wunused-variable Warn whenever a local variable or non-constant static variable is unused aside from its declaration.
This warning is enabled by -Wall. gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/War... Edit This behavior has changed in GCC 4.4: Uninitialized warnings do not require enabling optimization anymore, that is, -Wuninitialized can be used together with -O0. Nonetheless, the warnings given by -Wuninitialized will probably be more accurate if optimization is enabled.
As shown in my example above, passing -W -Wall is insufficient to perform dataflow analysis with optimization disabled – bdonlan May 20 '09 at 0:33 I don't have this problem. Whenever I use -Wall, I get the warning (but not with -W). Which GCC version are you using?
– Bastien Léonard May 20 '09 at 0:41 1 @Bastien: aha - you changed the code. You made x completely unreferenced, and got the unused variable warning. Bdonlan is after the uninitialized warning.
– Steve Jessop May 20 '09 at 0:58 1 Got it, it's new in 4.4. See here, under the title “C familyâ€? : gcc.gnu. Org/gcc-4.4/changes.html.
– Bastien Léonard May 20 '09 at 1:00 1 -W is deprecated; its replacement is -Wextra, though, not -Wall. – Jonathan Leffler May 20 '09 at 5:12.
DDD and gdb can mostly cope with code compiled with gcc -O -g. Sometimes variables aren't in scope when you expect them to be, but DDD is clever enough to say "optimized away" instead of freaking out. But there's no question it's easier to debug with -O turned off—I have seen this a lot with my students' code.
This is what you have your automated build for. Let your automated build engine build with -Werror -Wall -O2, and you'll catch all the warnings triggered by higher optimization levels.
– Jonathan Leffler May 20 '09 at 5:12 A system such as Hudson is really easy to setup and configure, you can without problem use it even for small hobby projects. – JesperE May 20 '09 at 7:00.
Try using -Wall instead of -W . -W is deprecated IIRC. (As Jonathan Leffler points out in a comment -W 's replacement is -Wextra not -Wall .).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.