From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Bernd Schmidt Cc: "Kaveh R. Ghazi" , egcs@cygnus.com, rth@cygnus.com Subject: Re: egcs-980129, fixed ambiguous `else' warnings in the gcc/f/ dir. Date: Tue, 17 Feb 1998 23:59:00 -0000 Message-id: <23517.887783513@hurl.cygnus.com> References: X-SW-Source: 1998-02/msg00854.html In message 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