[Libguestfs] [PATCH] kvm-tool: don't add the -Wunused-result flag

Wanlong Gao wanlong.gao at gmail.com
Sun Nov 13 06:14:25 UTC 2011


The -Wunused-result is the default option of gcc, so no need to
add it to the FLAGS.

And the previous version of gcc can't support this flag, it may
cause a compile error.

Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
 tools/kvm/Makefile |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile
index f4741f2..bb5f6b0 100644
--- a/tools/kvm/Makefile
+++ b/tools/kvm/Makefile
@@ -176,7 +176,6 @@ WARNINGS += -Wstrict-prototypes
 WARNINGS += -Wundef
 WARNINGS += -Wvolatile-register-var
 WARNINGS += -Wwrite-strings
-WARNINGS += -Wunused-result
 
 CFLAGS	+= $(WARNINGS)
 
-- 
1.7.8.rc1




More information about the Libguestfs mailing list