From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6931 invoked by alias); 28 Sep 2002 15:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6915 invoked by uid 71); 28 Sep 2002 15:36:02 -0000 Date: Sat, 28 Sep 2002 08:36:00 -0000 Message-ID: <20020928153602.6914.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation Reply-To: Gabriel Dos Reis X-SW-Source: 2002-09/txt/msg00797.txt.bz2 List-Id: The following reply was made to PR c++/8076; it has been noted by GNATS. From: Gabriel Dos Reis To: austern@apple.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation Date: 28 Sep 2002 17:25:07 +0200 austern@apple.com writes: [...] | bash-2.05$ ~/root/bin/g++ -Wmissing-declarations -c foo.c | cc1plus: warning: "-Wmissing-declarations" is valid for C/ObjC but not for C++ | | Either the documentation or the compiler is wrong. Which is it? (I suspect the documentation.) You suspect right: The documentation should describe that option as being non C++; I see no way in which that switch could be helpful in C++. -- Gaby