This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7484: warning with -Wmissing-declarations
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 4 Aug 2002 11:16:02 -0000
- Subject: Re: c++/7484: warning with -Wmissing-declarations
- Reply-to: Gabriel Dos Reis <gdr at integrable-solutions dot net>
The following reply was made to PR c++/7484; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: ib@wupperonline.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7484: warning with -Wmissing-declarations
Date: 04 Aug 2002 13:13:06 +0200
ib@wupperonline.de writes:
[...]
| >Description:
| When using options -W and -Wmissing-declarations you get "cc1plus: warning: ignoring command line option" for -Wmissing-declarations, but there is no explanation in the doc, why you can't use -W and -Wmissing-declarations starting from gcc-3.1.
I don't know why there is no documentation, but -Wmissing-declarations
is meaningless in C++: you can't use a name if a declaration for it in
not in scope.
-- Gaby