Fix rk3326/rk3399 u-boot for gcc13

This commit is contained in:
brooksytech 2023-12-28 06:40:28 +00:00
parent b2b0f238cb
commit e72208cf1d
No known key found for this signature in database
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index c60ad289a..f688dfbf3 100644
--- a/Makefile
+++ b/Makefile
@@ -605,6 +605,8 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-stack-usage.sh $(CC)),y)
endif
KBUILD_CFLAGS += $(call cc-option,-Wno-format-nonliteral)
+KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
# turn jbsr into jsr for m68k
ifeq ($(ARCH),m68k)

View file

@ -0,0 +1,12 @@
diff --git a/Makefile b/Makefile
index ff76e8559..3ebe059b9 100644
--- a/Makefile
+++ b/Makefile
@@ -606,6 +606,7 @@ endif
KBUILD_CFLAGS += $(call cc-option,-Wno-format-nonliteral)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
# turn jbsr into jsr for m68k
ifeq ($(ARCH),m68k)