kvm tools: Add '-Wunused-result' to WARNINGS

This makes GCC catch warn_unused_result explicitly.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Asias He
2011-07-18 18:59:19 +08:00
committed by Will Deacon
parent 0c54698e85
commit 98223bf932
+1
View File
@@ -150,6 +150,7 @@ WARNINGS += -Wstrict-prototypes
WARNINGS += -Wundef
WARNINGS += -Wvolatile-register-var
WARNINGS += -Wwrite-strings
WARNINGS += -Wunused-result
CFLAGS += $(WARNINGS)