[tip:tools/kvm] kvm tools: don' t pass -Wcast-align to the compiler

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

 



Commit-ID:  b861803051a047d95e6f4db4e4f25457844f1c3a
Gitweb:     http://git.kernel.org/tip/b861803051a047d95e6f4db4e4f25457844f1c3a
Author:     Will Deacon <will.deacon@xxxxxxx>
AuthorDate: Mon, 12 Nov 2012 11:57:20 +0000
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Tue, 13 Nov 2012 09:26:47 +0200

kvm tools: don't pass -Wcast-align to the compiler

GCC 4.7 with -Wcast-align will warn for code like the following:

	bar = (struct foo *)(char *)(0);

which is exactly the sort of code generated by container_of. In
combination with -Werror, this breaks the build.

This patch removes the option from the kvmtool Makefile.

Signed-off-by: Will Deacon <will.deacon@xxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile
index bb22587..c105de1 100644
--- a/tools/kvm/Makefile
+++ b/tools/kvm/Makefile
@@ -247,7 +247,6 @@ KVM_INCLUDE := include
 CFLAGS	+= $(CPPFLAGS) $(DEFINES) -I$(KVM_INCLUDE) -I$(ARCH_INCLUDE) -I$(KINCL_PATH)/include/uapi -I$(KINCL_PATH)/include -I$(KINCL_PATH)/arch/$(ARCH)/include/uapi -I$(KINCL_PATH)/arch/$(ARCH)/include/ -O2 -fno-strict-aliasing -g
 
 WARNINGS += -Wall
-WARNINGS += -Wcast-align
 WARNINGS += -Wformat=2
 WARNINGS += -Winit-self
 WARNINGS += -Wmissing-declarations
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux