From 83fa68b9ebfd8a388e38276bf2610f2f82009ab4 Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Mon, 12 Nov 2012 11:57:20 +0000 Subject: [PATCH] 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 Signed-off-by: Pekka Enberg --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index bb22587..c105de1 100644 --- a/Makefile +++ b/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