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>
Este cometimento está contido em:

cometido por
Greg Kroah-Hartman

ascendente
4a7fb6363f
cometimento
cebc04ba9a
@@ -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"
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador