Subject: Re: kern/5333: GCC 2.8.1 complains about missing parenteses in if-else
To: None <ivanenko@ctpa03.mit.edu>
From: Chris G. Demetriou <cgd@pa.dec.com>
List: netbsd-bugs
Date: 04/21/1998 08:46:59
> "else" part is ambiguos and GCC suggests putting explicit parenteses.
> Since kernel is compiled with -Werror, compilation stops. One solution is 
> to put -Wno-parenteses in compiler switches or (I think better) apply the 
> patch below. The following files are affected (in MI part)

I personally think that adding extra braces is a good idea, if it
makes code clearer (see /sys/arch/alpha/STYLE 8-), but it goes against
the 'overall' NetBSD source style guide (see /usr/share/misc/style).




cgd