From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2722 invoked by alias); 27 Sep 2002 23:46:06 -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 2685 invoked by uid 71); 27 Sep 2002 23:46:04 -0000 Resent-Date: 27 Sep 2002 23:46:04 -0000 Resent-Message-ID: <20020927234604.2684.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, austern@apple.com Received: (qmail 1729 invoked by uid 61); 27 Sep 2002 23:42:48 -0000 Message-Id: <20020927234248.1728.qmail@sources.redhat.com> Date: Fri, 27 Sep 2002 16:46:00 -0000 From: austern@apple.com Reply-To: austern@apple.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation X-SW-Source: 2002-09/txt/msg00766.txt.bz2 List-Id: >Number: 8076 >Category: c++ >Synopsis: -Wmissing-declarations is C-only, conflicts with documentation >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Sep 27 16:46:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: austern@apple.com >Release: 3.3 TOT >Organization: >Environment: >Description: The compiler documentation doesn't describe -Wmissing-declarations as a C-only option, but the compiler treats it as one: bash-2.05$ cat foo.c int f(int n) { return n; } bash-2.05$ ~/root/bin/gcc -Wmissing-declarations -c foo.c foo.c:1: warning: no previous declaration for `f' 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.) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: