summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-08-21 09:18:25 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-08-23 19:17:26 -0400
commit43f5df79dad6738d52ea79d072de2b56eb96a91f (patch)
treeab7c01e5940bdb9b8f0f2daa3e91dbce9306314e /Makefile
parent30f1e41f04fb4c715d27f987f003cfc31c9ff4f3 (diff)
downloadqemu-seabios-43f5df79dad6738d52ea79d072de2b56eb96a91f.tar.gz
Makefile: Build with -Wno-address-of-packed-member
Building with gcc v9 causes lots of warnings about pointers to packed variables. However, SeaBIOS is limited to x86 where unaligned reads/writes are supported by the cpu. So, disable that warning. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d16d1ae..5f7d537 100644
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,7 @@ COMMONCFLAGS += $(call cc-option,$(CC),-fno-pie,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
COMMONCFLAGS += $(call cc-option,$(CC),-fstack-check=no,)
+COMMONCFLAGS += $(call cc-option,$(CC),-Wno-address-of-packed-member,)
COMMA := ,
CFLAGS32FLAT := $(COMMONCFLAGS) -DMODE16=0 -DMODESEGMENT=0