From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4470 invoked by alias); 13 Jun 2002 05:41:18 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 4355 invoked from network); 13 Jun 2002 05:40:00 -0000 Received: from unknown (HELO hal.astr.lu.lv) (195.13.134.67) by sources.redhat.com with SMTP; 13 Jun 2002 05:40:00 -0000 Received: from hal.astr.lu.lv (andris@localhost.lanet.lv [127.0.0.1] (may be forged)) by hal.astr.lu.lv (8.12.3/8.11.3) with ESMTP id g5D5dtwr018434; Thu, 13 Jun 2002 08:39:56 +0300 Received: from localhost (localhost [[UNIX: localhost]]) by hal.astr.lu.lv (8.12.3/8.12.3/Submit) id g5D5dtEY018433; Thu, 13 Jun 2002 08:39:55 +0300 Content-Type: text/plain; charset="iso-8859-1" From: Andris Pavenis To: Alexandre Oliva Subject: Re: New cpp0 warning in 3.1 breaks configure (autoconf) Date: Wed, 12 Jun 2002 23:55:00 -0000 User-Agent: KMail/1.4.1 Cc: gcc@gcc.gnu.org References: <20020606204404.GA17526@bort.dtek.chalmers.se> <20020611230228.GA1375@tetto.liafa.jussieu.fr> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206130839.55423.pavenis@latnet.lv> X-SW-Source: 2002-06/txt/msg00852.txt.bz2 On Wednesday 12 June 2002 06:35, Alexandre Oliva wrote: > > > > Well, the problem stemmed from /usr/local/include in the first place. > > Entirely different beast. > > > > See what I mean about different assumptions ? > > Same difference to me. -I/usr/local/include is wrong too, since > /usr/local/include is a system header directory. -Iing it may not be > as evil as /usr/include, but it's still a bad idea IMO. There more. If for example /usr/X11R6/include is specified in C_INCLUDE_PATH (or accordingly CPLUS_INCLUDE_PATH for C++) it is also treated as system=20 header directory. So I'm getting warning when -I/usr/X11R6/include is=20 specified in command line. Perhaps it would be better to limit this warnin= g=20 to list of system include directories before adding ones from C_INCLUDE_PAT= H=20 or CPLUS_INCLUDE_PATH (or even to ones which are processed by fixincludes) Andris =09