X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=init%2FKconfig;h=11f8a845f259da63299a77001991631be81c0eac;hp=e708180e9a595fcf91e69c8cf97f7c4ce08c0da2;hb=c605c39677b9842b0566013e0cf30bc13e90bdbc;hpb=f1583cb1be35c23df60b1c39e3e7e6704d749d0b diff --git a/init/Kconfig b/init/Kconfig index e708180e9a59..11f8a845f259 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -137,6 +137,20 @@ config COMPILE_TEST here. If you are a user/distributor, say N here to exclude useless drivers to be distributed. +config WERROR + bool "Compile the kernel with warnings as errors" + default COMPILE_TEST + help + A kernel build should not cause any compiler warnings, and this + enables the '-Werror' flag to enforce that rule by default. + + However, if you have a new (or very old) compiler with odd and + unusual warnings, or you have some architecture with problems, + you may need to disable this config option in order to + successfully build the kernel. + + If in doubt, say Y. + config UAPI_HEADER_TEST bool "Compile test UAPI headers" depends on HEADERS_INSTALL && CC_CAN_LINK