Article View: gnu.gcc.bug
Article #84Re: gcc-2.3.1: arrays of structs+assign in cond+unfinished fixincludes
From: Paul Eggert
Date: Wed, 04 Nov 1992 00:11
Date: Wed, 04 Nov 1992 00:11
22 lines
1545 bytes
1545 bytes
obz@raster.Kodak.COM writes: >o Arrays of unbracketed struct declarations are given warnings. According > to ANSI C, this is perfectly legal, so a warning here is unwarranted. Actually, GCC 2.3.1 is following the suggestion of the ANSI C standard here. See ANSI X3.159-1989, Appendix E ``Common Warnings'', page 198, 10th warning. To turn off this warning, omit `-W'. >o Conditionals with a single assignment are warned to surround the > assignment with parenthesis. This warning can be quite useful to catch common C coding errors like `if (a = b)' where `if (a == b)' was meant. To turn off the warning, use `-Wall -Wno-parentheses' instead of just `-Wall'. >o Fixincludes doesn't fix all the #endif's with trailing garbage from the > headers in /usr/include. Using -Wall and -ansi we had to manually strip > tens of headers. This is fixed by the fixincludes patch that I posted yesterday (Message-ID: <9211030433.AA05731@farside.twinsun.com>).
Technical Details
Message-ID:
<9211040011.AA07051@farside.twinsun.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!charnel!rat!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!twinsun.COM!eggertReferences:
<1992Nov3.180242.3404@sisd.kodak.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!charnel!rat!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!twinsun.COM!eggert From: eggert@twinsun.COM (Paul Eggert) Newsgroups: gnu.gcc.bug Subject: Re: gcc-2.3.1: arrays of structs+assign in cond+unfinished fixincludes Message-ID: <9211040011.AA07051@farside.twinsun.com> Date: 4 Nov 92 00:11:41 GMT References: <1992Nov3.180242.3404@sisd.kodak.com> Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 22 Approved: bug-gcc@prep.ai.mit.edu