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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux