distribution/projects/Rockchip/packages/u-boot/patches/RK3566-X55/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
2023-12-27 12:53:07 +00:00
index cdb3ff9..d439225 100644
2023-12-27 02:41:23 +00:00
--- a/Makefile
+++ b/Makefile
2023-12-27 12:53:07 +00:00
@@ -596,6 +596,8 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
2023-12-27 02:41:23 +00:00
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
2023-12-27 12:53:07 +00:00
+KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
2023-12-27 02:41:23 +00:00
KBUILD_CFLAGS += -g
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>