aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-11-12 11:57:20 +0000
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:53 +0100
commit83fa68b9ebfd8a388e38276bf2610f2f82009ab4 (patch)
tree9ad6e1697ef701ae667216ee6db0e4e258392173 /Makefile
parentde5e15e1f4383131ac58d594cc50defa24271f09 (diff)
downloadkvmtool-83fa68b9ebfd8a388e38276bf2610f2f82009ab4.tar.gz
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@arm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bb225877..c105de11 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