From owner-freebsd-stable Thu Aug 22 18:40: 8 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0760737B400 for ; Thu, 22 Aug 2002 18:40:05 -0700 (PDT) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4417D43E77 for ; Thu, 22 Aug 2002 18:40:03 -0700 (PDT) (envelope-from eugen@svzserv.kemerovo.su) Received: from svzserv.kemerovo.su (kost [213.184.65.82]) by www.svzserv.kemerovo.su (8.12.5/8.12.5) with ESMTP id g7N1dxie007181; Fri, 23 Aug 2002 09:40:00 +0800 (KRAST) (envelope-from eugen@svzserv.kemerovo.su) Message-ID: <3D659256.FE8E03EE@svzserv.kemerovo.su> Date: Fri, 23 Aug 2002 09:39:34 +0800 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: Erik Trulsson Cc: Eugene Grosbein , stable@freebsd.org Subject: Re: /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' References: <20020822223657.A364@grosbein.pp.ru> <20020822145308.GA11197@falcon.midgard.homeip.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Erik Trulsson wrote: > > # gcc -ansi -pedantic -Wall test.c > > In file included from test.c:4: > > /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' > > /usr/include/stdlib.h:114: warning: ANSI C does not support `long long' > > > > Why? > > Because gcc no longer treats the header files in /usr/include > specially. It used to suppress warnings from system headers but no > longer treats them as system headers. I don't know why this change was > made but it was made. > > The warning is technically correct but you can ignore it. > (stdlib.h does use 'long long' and the original C standard did not have > long long, but since the new C standard does support long long it is not > much of a problem if it is used.) > > To get rid of it either stop using -pedantic or add > -Wno-long-long to the invocation of gcc. Well, this 'feature' make it impossible to use -Werr. I can dig all my Makefiles and add -Wno-long-long everywhere but first I want to known if this will be fixed in STABLE? Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message