emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC complaints about missing braces around initializer


From: Richard Stallman
Subject: Re: GCC complaints about missing braces around initializer
Date: Wed, 5 Dec 2001 19:45:35 -0700 (MST)

    The similar applies to:

          if (c1 > 0 && c1 < 32 || c2 > 0 && c2 < 32)
            return -1;

This is a place which really is worth changing.
Real programmers get confused reading such code.

That's one of the GCC warnings I decided to add
because I thought it was useful, rather than
because someone else wanted it.

Adding parentheses is certainly safe in any version of C.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]