[klibc] Re: kbuild: add -Wno-sign-compare

Sam Ravnborg sam at ravnborg.org
Tue Aug 2 14:38:03 PDT 2005

On Tue, Aug 02, 2005 at 02:25:45PM -0700, H. Peter Anvin wrote:
> Sam Ravnborg wrote:
> >hpa wrote: Please add -Wno-sign-compare to the CFLAGS
> >And so I did - wondering how -Wsign-compare slept in at all.
> -W implies -Wsign-compare.  It seems that the Linux kernel doesn't use 
> -W, but I do like most of the warnings it enables.  However, some of 
> them are clearly obnoxious.
> I suspect the right thing is to do:
> -Wall -W -Wno-sign-compare -Wno-missing-field-initializers
> ... but I don't know for sure if the last of these is gcc-version-specific.

gcc --version
gcc (GCC) 3.3.5-20050130 (Gentoo Linux

cc1: error: unrecognized option `-Wno-missing-field-initializers'

Seems so. It is described in manual for 4.0.1 which I have not installed.


More information about the klibc mailing list