From patchwork Tue May 24 17:12:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 97183 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 0A964B6F74 for ; Wed, 25 May 2011 03:14:05 +1000 (EST) Received: (qmail 32595 invoked by alias); 24 May 2011 17:14:02 -0000 Received: (qmail 32587 invoked by uid 22791); 24 May 2011 17:14:01 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 17:13:47 +0000 Received: from eggs.gnu.org ([140.186.70.92]:35819) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QOvAv-0004DZ-Vb for gcc-patches@gnu.org; Tue, 24 May 2011 13:13:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOvAu-0001O9-Ng for gcc-patches@gnu.org; Tue, 24 May 2011 13:13:45 -0400 Received: from smtp131.iad.emailsrvr.com ([207.97.245.131]:36056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOvAu-0001O2-Hc for gcc-patches@gnu.org; Tue, 24 May 2011 13:13:44 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp43.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 20A1F2D08F2 for ; Tue, 24 May 2011 13:13:44 -0400 (EDT) Received: from dynamic8.wm-web.iad.mlsrvr.com (dynamic8.wm-web.iad1a.rsapps.net [192.168.2.149]) by smtp43.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 367612D100E for ; Tue, 24 May 2011 13:12:21 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic8.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 1C95E305006E for ; Tue, 24 May 2011 13:12:21 -0400 (EDT) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Tue, 24 May 2011 19:12:21 +0200 (CEST) Date: Tue, 24 May 2011 19:12:21 +0200 (CEST) Subject: Tiny documentation update in diagnostic.c From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1306257141.113517280@www2.webmail.us> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 207.97.245.131 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Ok to commit ? Thanks Returns true if the warning was printed, false if it was inhibited. */ Index: ChangeLog =================================================================== --- ChangeLog (revision 174112) +++ ChangeLog (working copy) @@ -1,3 +1,15 @@ +2011-05-24 Nicola Pero + + * diagnostic.c (pedwarn): Updated comment. + Index: diagnostic.c =================================================================== --- diagnostic.c (revision 174112) +++ diagnostic.c (working copy) @@ -701,8 +701,9 @@ Note that these diagnostics are issued independent of the setting of the -pedantic command-line switch. To get a warning enabled only with that switch, use either "if (pedantic) pedwarn - (OPT_pedantic,...)" or just "pedwarn (OPT_pedantic,..)". To get a - pedwarn independently of the -pedantic switch use "pedwarn (0,...)". + (,OPT_pedantic,...)" or just "pedwarn (,OPT_pedantic,..)". To get + a pedwarn independently of the -pedantic switch use "pedwarn + (,0,...)".