This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/612: -W makes -Wmissing-declarations being ignored



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]