Date: Fri, 23 Aug 2002 09:39:34 +0800 From: Eugene Grosbein <eugen@svzserv.kemerovo.su> To: Erik Trulsson <ertr1013@student.uu.se> Cc: Eugene Grosbein <eugen@grosbein.pp.ru>, stable@freebsd.org Subject: Re: /usr/include/stdlib.h:110: warning: ANSI C does not support `long long' Message-ID: <3D659256.FE8E03EE@svzserv.kemerovo.su> References: <20020822223657.A364@grosbein.pp.ru> <20020822145308.GA11197@falcon.midgard.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D659256.FE8E03EE>