egcs-980129, fixed ambiguous `else' warnings in the gcc/f/ dir.
Jeffrey A Law
law@cygnus.com
Tue Feb 17 23:59:00 GMT 1998
In message <Pine.SOL.3.90.980216135224.24718C-100000@ohara.informatik.rwth-aa
chen.de>you write:
> * c-common.c (c_expand_start_cond, c_expand_end_cond,
> c_expand_start_else): Don't warn about non-ambiguous else even if
> braces are missing.
I've installed this patch.
Note if you want to warn for those unambigious cases you might
consider using a tri-state variable to control the warnings.
-Wall would set it to the default value (don't warn if the if-else
tree is full), while another option would warn, even if the if-else
tree was full.
I think there's already some warnings that work in this manner, so
it would probably be possible to steal code from them...
Thanks!
jeff
More information about the Gcc
mailing list