Fix rk3326/rk3399 u-boot for gcc13
This commit is contained in:
parent
b2b0f238cb
commit
e72208cf1d
2 changed files with 25 additions and 0 deletions
|
@ -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)
|
|
@ -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)
|
Loading…
Reference in a new issue