mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user