This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/612: -W makes -Wmissing-declarations being ignored
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/612: -W makes -Wmissing-declarations being ignored
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 5 Oct 2000 15:41:49 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, wolfgang.bangerth@iwr.uni-heidelberg.de
>Number: 612
>Category: c++
>Synopsis: -W makes -Wmissing-declarations being ignored
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 05 08:46:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
Linux, Sun, gcc2.97 20001002
>Description:
If -W is given as argument, then -Wmissing-declarations
is reported as being ignored, although the latter option
is not listed as included in -W in the docs.
gcc (as opposed to g++) accepts this without warning, as
does gcc2.95
>How-To-Repeat:
Compile
> int main () {};
with
> c++ -W -Wmissing-declarations
to obtain
cc1plus: warning: Ignoring command line option '-Wmissing-declarations'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: