From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25439 invoked by alias); 19 Dec 2011 18:21:49 -0000 Received: (qmail 25428 invoked by uid 22791); 19 Dec 2011 18:21:46 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Dec 2011 18:21:18 +0000 Received: by wgbdr1 with SMTP id dr1so9836941wgb.8 for ; Mon, 19 Dec 2011 10:21:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.206.66 with SMTP id ft2mr13168327wbb.8.1324318877091; Mon, 19 Dec 2011 10:21:17 -0800 (PST) Received: by 10.216.69.7 with HTTP; Mon, 19 Dec 2011 10:21:17 -0800 (PST) In-Reply-To: <20740275.1525510.1324312709584.JavaMail.nitido@priv-edtnes92> References: <20740275.1525510.1324312709584.JavaMail.nitido@priv-edtnes92> Date: Mon, 19 Dec 2011 18:21:00 -0000 Message-ID: Subject: Re: limiting warning message types From: Jonathan Wakely To: somervi8@telus.net Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-12/txt/msg00139.txt.bz2 On 19 December 2011 16:38, wrote: > Hi : > > I am having problems limiting the warning messages i receive > =A0from g++. If I use -w with any other -Wwarning option i still get no NO > =A0warning messages of the type I desire. If I don't use -w, I am swamped > with warning messages i don't want=A0 . Surely there must be a simple way > to just get a few selected warning messages easily ?? Like most software, how to use GCC is documented in its manual: http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html Which says: "You can request many specific warnings with options beginning `-W', for example -Wimplicit to request warnings on implicit declarations. Each of these specific warning options also has a negative form beginning `-Wno-' to turn off warnings; for example, -Wno-implicit."