[openwrt/openwrt] generic: 5.15: enable Werror by default for kernel compile

LEDE Commits lede-commits at lists.infradead.org
Thu May 11 18:24:33 PDT 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b2d1eb717b6597e0145c98fc5f9f88a7dc219513

commit b2d1eb717b6597e0145c98fc5f9f88a7dc219513
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Sat May 6 01:49:14 2023 +0200

    generic: 5.15: enable Werror by default for kernel compile
    
    From 5.15 and up linux kernel introduced CONFIG_WERROR to flag any
    warning as error. To improve code quality, enable this by default to
    catch any warning and fix it.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/linux/generic/config-5.15 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index aa1f6a5e35..4c35281b54 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -7467,7 +7467,7 @@ CONFIG_WATCHDOG_OPEN_TIMEOUT=0
 # CONFIG_WD80x3 is not set
 # CONFIG_WDAT_WDT is not set
 # CONFIG_WDTPCI is not set
-# CONFIG_WERROR is not set
+CONFIG_WERROR=y
 # CONFIG_WEXT_CORE is not set
 # CONFIG_WEXT_PRIV is not set
 # CONFIG_WEXT_PROC is not set




More information about the lede-commits mailing list