From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19909 invoked by alias); 13 Jun 2002 06:26:01 -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 19889 invoked by uid 71); 13 Jun 2002 06:26:01 -0000 Resent-Date: 13 Jun 2002 06:26:01 -0000 Resent-Message-ID: <20020613062601.19887.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Hugues.Talbot@cmis.CSIRO.AU (Hugues Talbot) Received: (qmail 18356 invoked from network); 13 Jun 2002 06:20:36 -0000 Received: from unknown (HELO snowy.nsw.cmis.CSIRO.AU) (130.155.16.108) by sources.redhat.com with SMTP; 13 Jun 2002 06:20:36 -0000 Received: by snowy.nsw.cmis.CSIRO.AU (SMI-8.6/SMI-SVR4) id QAA28856; Thu, 13 Jun 2002 16:20:35 +1000 Received: from fire.nsw.cmis.CSIRO.AU(130.155.16.102) via SMTP by snowy.nsw.cmis.CSIRO.AU, id smtpdAAAa0072q; Thu Jun 13 16:20:28 2002 Received: by fire.nsw.cmis.CSIRO.AU (8.9.3/1.1.29.3/05Jul01-1125AM) id QAA0000400362; Thu, 13 Jun 2002 16:20:28 +1000 (EST) Message-Id: <200206130620.QAA0000400362@fire.nsw.cmis.CSIRO.AU> Date: Wed, 12 Jun 2002 23:26:00 -0000 From: Hugues.Talbot@cmis.CSIRO.AU (Hugues Talbot) To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7009: please provide command line option to turn off new include warnings X-SW-Source: 2002-06/txt/msg00289.txt.bz2 List-Id: >Number: 7009 >Category: c++ >Synopsis: please provide command line option to turn off new include warnings >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Wed Jun 12 23:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Hugues Talbot >Release: 3.1 >Organization: CSIRO DMS >Environment: System: OSF1 fire.nsw.cmis.CSIRO.AU V5.1 732 alpha Machine: alpha host: alphaev67-dec-osf5.1 build: alphaev67-dec-osf5.1 target: alphaev67-dec-osf5.1 configured with: ../gcc-3.1/configure --enable-languages=c,c++,f77 --disable-nls >Description: I find this warning unbearable: c++ -D_REENTRANT -DOSF1 -I. -isystem /usr/local/include -DHAVE_CONFIG_H -I/usr/local/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -O2 -Wall -Wno-return-type -I../../.. -I.. -c arbitrary.cxx cc1plus: warning: changing search order for system directory "/usr/local/include" cc1plus: warning: as it has already been specified as a non-system directory cc1plus: warning: changing search order for system directory "/usr/local/include" cc1plus: warning: as it has already been specified as a non-system directory 0- It is not generally useful. 1- It drowns the real useful warning information into a sea of useless messages 2- It is needlessly repeated multiple times, not just across whole projects but as the result of a single call to the compiler. This is way overkill. 3- I've already indicated -isystem /usr/local/include on the command line, why does gcc continue to bitch? 4- My compilation stanza are derived from a complex autoconf mechanism, I have no wish to make it even more complex to fix this non-existent problem. Think of how this must be done: autoconf must find out where gcc has been installed, and then if it has been installed in the same directory as some other library I also need, then suppress the excess -I that I would otherwise need. The gcc maintainers are welcome to propose a solution to this thorny problem. All I want and I'm sure many others is a way of turning this message off. I couldn't find any short of hacking the gcc source. It's OK to leave it on as default if you think it's important (obviously I don't). AFAIK the gcc user community has done very well without this warning for years, I don't know what prompted the gcc developers to suddently lecture everybody. >How-To-Repeat: Trivial to repeat. >Fix: -Wno-include-order-warning or something like that, Pleeeeze? >Release-Note: >Audit-Trail: >Unformatted: