]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Add '-Wunused-result' to WARNINGS
authorAsias He <asias.hejun@gmail.com>
Mon, 18 Jul 2011 10:59:19 +0000 (18:59 +0800)
committerPekka Enberg <penberg@kernel.org>
Mon, 18 Jul 2011 11:21:19 +0000 (14:21 +0300)
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>
tools/kvm/Makefile

index b5c55169f59be973726d8950df5d1687280b9620..21d61899c576effcc8178d46cc8531e3fef8a7e0 100644 (file)
@@ -150,6 +150,7 @@ WARNINGS += -Wstrict-prototypes
 WARNINGS += -Wundef
 WARNINGS += -Wvolatile-register-var
 WARNINGS += -Wwrite-strings
+WARNINGS += -Wunused-result
 
 CFLAGS += $(WARNINGS)