config: select KERNEL_WERROR if building with default GCC version
[openwrt/staging/nbd.git] / toolchain / gcc / Config.in
index 85abbdabb7ac54d544b3e5d79c37d310860e679f..fd98914075524cdb4e6fd3b479bc30e120d9eb66 100644 (file)
@@ -16,6 +16,11 @@ choice
                bool "gcc 13.x"
 endchoice
 
+config GCC_USE_DEFAULT_VERSION
+       bool
+       default y if !TOOLCHAINOPTS || GCC_USE_VERSION_13
+       imply KERNEL_WERROR
+
 config GCC_USE_GRAPHITE
        bool
        prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS