distribution/projects/Rockchip/packages/u-boot/patches/RK3566/0005-disable-enum-int-mismatch-warning.patch

14 lines
606 B
Diff
Raw Normal View History

2023-12-27 02:41:23 +00:00
diff --git a/Makefile b/Makefile
index cdb3ff9..d439225 100644
--- a/Makefile
+++ b/Makefile
@@ -596,6 +596,8 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
+KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
KBUILD_CFLAGS += -g
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>