LWN.net Logo

Debugging optimized

Debugging optimized

Posted Apr 16, 2010 16:28 UTC (Fri) by jzbiciak (✭ supporter ✭, #5246)
In reply to: Debugging optimized by jengelh
Parent article: GCC 4.5.0 released

Oy... The redundant declarations one is maybe a bit annoying. :-) Otherwise, I use these other flags as well:

-Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wc++-compat

Now if flex-generated code didn't cause so many warnings. The only warnings in my own "major" app, jzIntv, come from code I didn't write:

bincfg/bincfg_lex.c: In function ‘yy_get_next_buffer’:
bincfg/bincfg_lex.c:1858: warning: comparison between signed and unsigned
bincfg/bincfg_lex.c: At top level:
bincfg/bincfg_lex.c:2413: warning: no previous prototype for ‘bc_get_lineno’
bincfg/bincfg_lex.c:2422: warning: no previous prototype for ‘bc_get_in’
bincfg/bincfg_lex.c:2430: warning: no previous prototype for ‘bc_get_out’
bincfg/bincfg_lex.c:2438: warning: no previous prototype for ‘bc_get_leng’
bincfg/bincfg_lex.c:2447: warning: no previous prototype for ‘bc_get_text’
bincfg/bincfg_lex.c:2456: warning: no previous prototype for ‘bc_set_lineno’
bincfg/bincfg_lex.c:2468: warning: no previous prototype for ‘bc_set_in’
bincfg/bincfg_lex.c:2473: warning: no previous prototype for ‘bc_set_out’
bincfg/bincfg_lex.c:2478: warning: no previous prototype for ‘bc_get_debug’
bincfg/bincfg_lex.c:2483: warning: no previous prototype for ‘bc_set_debug’
bincfg/bincfg_lex.c:2517: warning: no previous prototype for ‘bc_lex_destroy’

*sigh* I have a severe allergy to tweaking generated code.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds