Thread (19 messages) flat view 19 messages, 13 authors, 2021-09-20

Re: [PATCH] Revert "Enable '-Werror' by default for all kernel builds"

From: Pavel Machek <hidden>
Date: 2021-09-13 09:33:03
Also in: linux-kbuild, linux-security-module, lkml, llvm

Hi!
quoted
quoted
 config WERROR
        bool "Compile the kernel with warnings as errors"
-       default y
+       default COMPILE_TEST
That seems reasonable. It very much is about build-testing.
That and 2 more things IMO:

a. having developers be responsible for build warnings, not just
   build errors

b. having maintainers merge them more like they are build errors
   and not just some warnings that can be overlooked.

I don't see enough of a. or b.  :(
Do we really want developers treat warnings as errors? When the code
is okay but some random version of gcc dislikes it...

Plus, there's question of stable. We already get ton of churn there
("this fixes random warning"). WERROR will only encourage that...

Best regards,
								Pavel
-- 
http://www.livejournal.com/~pavelmachek

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help