🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52024

Re: Wall option trouble in 2.3.3

#52024
From: h.b.furuseth
Date: Mon, 15 Feb 1993 15:30
36 lines
1990 bytes
In article <1993Feb12.170117.418@daimi.aau.dk> gnort@daimi.aau.dk (Lars Balker Rasmussen) writes:

> How does one avoid this warning without abandoning all the good parts of the
> -Wall option?

Check info node "(gcc.info)Warning Options".  You'll have to use all
the -Wxxx options above -Wall, except -W and -Wparentheses.


> These two, especially the former, are considered annoying by us

Right!

I toss out -Wimplicit too, because lots of int functions in the
standard library are undeclared.

Even gcc's authors don't agree with themselves about these warnings.
Never mind -Wall, just try to build gcc with CFLAGS=-W.  I'd expect -W
to express their opinion about warnings a program at LEAST should avoid.
It spews out other warnings too, mostly "possibly uninitialized"
variables (though only very few of these actually can be uninitialized).



I'd like to collect the warnings into -W0...-W9 options: -W0 = -w,
maybe -W6 = -Wall, -W9 = -Wall -Wcast-qual -Wshadow -ansi -pedantic.

It would also be nice to give the most usual warnings a single-letter
name, so we could say something like -W+aq-pi for -Wall -Wcast-qual
-Wno-parentheses -Wno-implicit (that's the -W's I prefer).

We'd just have to agree on which warnings are important, and how to
rank them...  How about an "advisory vote"?


Hallvard
Technical Details
Message-ID: <9302151527.AAdurin09610@durin.uio.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!usit.uio.NO!h.b.furuseth
References: h.b.furuseth@usit.uio.NO

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d94974aea712aed8
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-02-15 07:55:12 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!usit.uio.NO!h.b.furuseth
From: h.b.furuseth@usit.uio.NO
Newsgroups: gnu.gcc.help
Subject: Re: Wall option trouble in 2.3.3
Date: 15 Feb 1993 10:30:51 -0500
Organization: GNUs Not Usenet
Lines: 36
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9302151527.AAdurin09610@durin.uio.no>
References: h.b.furuseth@usit.uio.NO