* -W -Wno-unused -Wno-sign-compare compile flags
@ 2006-10-29 14:22 predator
2006-10-29 15:09 ` Oleg Verych
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: predator @ 2006-10-29 14:22 UTC (permalink / raw)
To: linux-kernel
Hello !linux-kernel
Does anybody try to compile latest linux-kernel with -W
-Wno-unused -Wno-sign-compare CFLAGS? There is a tons of
warnings :(
Recent versions of grsecurity patches adds this flags to
default. When I asked to grsec developers, why did they do
that, they answered: to show, how messy linux code is...
Is there any objections about it?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -W -Wno-unused -Wno-sign-compare compile flags
2006-10-29 14:22 -W -Wno-unused -Wno-sign-compare compile flags predator
@ 2006-10-29 15:09 ` Oleg Verych
2006-10-29 16:39 ` Valdis.Kletnieks
2006-10-29 17:25 ` Adrian Bunk
2 siblings, 0 replies; 4+ messages in thread
From: Oleg Verych @ 2006-10-29 15:09 UTC (permalink / raw)
To: linux-kernel
On 2006-10-29, someone from <predator@mt9.ru> wrote:
> Hello !linux-kernel
>
> Does anybody try to compile latest linux-kernel with -W
> -Wno-unused -Wno-sign-compare CFLAGS? There is a tons of
> warnings :(
> Recent versions of grsecurity patches adds this flags to
> default. When I asked to grsec developers, why did they do
> that, they answered: to show, how messy linux code is...
Yes, it is. You are welcome to fix it.
____
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -W -Wno-unused -Wno-sign-compare compile flags
2006-10-29 14:22 -W -Wno-unused -Wno-sign-compare compile flags predator
2006-10-29 15:09 ` Oleg Verych
@ 2006-10-29 16:39 ` Valdis.Kletnieks
2006-10-29 17:25 ` Adrian Bunk
2 siblings, 0 replies; 4+ messages in thread
From: Valdis.Kletnieks @ 2006-10-29 16:39 UTC (permalink / raw)
To: predator; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
On Sun, 29 Oct 2006 17:22:48 +0300, predator@mt9.ru said:
> Hello !linux-kernel
>
> Does anybody try to compile latest linux-kernel with -W
> -Wno-unused -Wno-sign-compare CFLAGS? There is a tons of
> warnings :(
> Recent versions of grsecurity patches adds this flags to
> default. When I asked to grsec developers, why did they do
> that, they answered: to show, how messy linux code is...
> Is there any objections about it?
I'd recommend attacking this one flag at a time - so for instance,
do up a series of patches that cleans up the -Wno-unused warnings, and
get that merged. Then get a series for -Wno-sign-compare, and finally
a patch that adds -W.
While you're at it, look at these flags as well:
-Werror-implicit-function-declaration -Wcomment -Wendif-labels -Wshadow
(The tree is pretty clean for the first 3, cleaning it for the last will
take some work...)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -W -Wno-unused -Wno-sign-compare compile flags
2006-10-29 14:22 -W -Wno-unused -Wno-sign-compare compile flags predator
2006-10-29 15:09 ` Oleg Verych
2006-10-29 16:39 ` Valdis.Kletnieks
@ 2006-10-29 17:25 ` Adrian Bunk
2 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-10-29 17:25 UTC (permalink / raw)
To: predator; +Cc: linux-kernel
On Sun, Oct 29, 2006 at 05:22:48PM +0300, predator@mt9.ru wrote:
> Hello !linux-kernel
>
> Does anybody try to compile latest linux-kernel with -W
> -Wno-unused -Wno-sign-compare CFLAGS? There is a tons of
> warnings :(
> Recent versions of grsecurity patches adds this flags to
> default. When I asked to grsec developers, why did they do
> that, they answered: to show, how messy linux code is...
> Is there any objections about it?
-W gives many warnings, some of them indicate possible improvements
while some of them warn about things that are perfectly OK.
While getting such warnings is a task that is sometimes worked on, it's
neither realistic nor required to get all warnings with -W fixed.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-29 17:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-29 14:22 -W -Wno-unused -Wno-sign-compare compile flags predator
2006-10-29 15:09 ` Oleg Verych
2006-10-29 16:39 ` Valdis.Kletnieks
2006-10-29 17:25 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox