From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17325 invoked by alias); 25 Feb 2009 21:48:12 -0000 Received: (qmail 17312 invoked by uid 22791); 25 Feb 2009 21:48:09 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Feb 2009 21:48:04 +0000 Received: from spaceape23.eur.corp.google.com (spaceape23.eur.corp.google.com [172.28.16.75]) by smtp-out.google.com with ESMTP id n1PLlqKY013023; Wed, 25 Feb 2009 21:47:53 GMT Received: from smtp.corp.google.com (spacemonkey1.corp.google.com [192.168.120.115]) by spaceape23.eur.corp.google.com with ESMTP id n1PLln9M020023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 25 Feb 2009 13:47:50 -0800 Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id n1PLllU6021574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 25 Feb 2009 13:47:48 -0800 To: "John \(Eljay\) Love-Jensen" Cc: GCC-help Subject: Re: Where did the warning go? References: From: Ian Lance Taylor Date: Wed, 25 Feb 2009 21:48:00 -0000 In-Reply-To: (John Love-Jensen's message of "Wed\, 25 Feb 2009 04\:25\:20 -0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true 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: 2009-02/txt/msg00220.txt.bz2 "John (Eljay) Love-Jensen" writes: > As long as I'm making wishes, I also wish warnings were emitted like this: > test.cpp:6: -Wunused warning: unused variable 'u' > ...rather than... > test.cpp:6: warning: unused variable 'u' As of gcc 4.2, you can get something like this if you use -fdiagnostics-show-option. Ian