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

H. Peter Anvin hpa at zytor.com
Tue Aug 2 14:25:45 PDT 2005


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.

	-hpa



More information about the klibc mailing list