diff options
author | Andrew Morton <akpm@osdl.org> | 2006-08-14 22:43:18 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-25 21:08:39 -0700 |
commit | cebc04ba9aeb3a646cc746300421fc0e5aa4f253 (patch) | |
tree | a2f47e375960efefd06fd4c3790184f34bd18b6f /lib | |
parent | 4a7fb6363f2d1a6c09a10253937f672f3c7929e1 (diff) | |
download | lwn-cebc04ba9aeb3a646cc746300421fc0e5aa4f253.tar.gz lwn-cebc04ba9aeb3a646cc746300421fc0e5aa4f253.zip |
add CONFIG_ENABLE_MUST_CHECK
Those 1500 warnings can be a bit of a pain. Add a config option to shut them
up.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 554ee688a9f8..5c114c3f03c5 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -8,6 +8,13 @@ config PRINTK_TIME operations. This is useful for identifying long delays in kernel startup. +config ENABLE_MUST_CHECK + bool "Enable __must_check logic" + default y + help + Enable the __must_check logic in the kernel build. Disable this to + suppress the "warning: ignoring return value of 'foo', declared with + attribute warn_unused_result" messages. config MAGIC_SYSRQ bool "Magic SysRq key" |