So on the weekend at codefest we talked about the benefit of
using gcc warnings to prevent you from doing dumb things.
Just now I had a really dumb thing:
int
foo(void) {
int value=0x37;
/* Some code */
return value;
return 0;
}
Spot it? No don't ask how I managed get two return statements
right after each other, but i did. Does anyway now of a warning
that picks up on such stupidity? I was guessing maybe -Wunreachable-code,
but that doesn't seem to do it, (and redunantly picks up some other code
that certainly will compile.)
Cheers,
Benno
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html