X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=config.mk;h=e2b440d8b2d71ec869cf95dc15038bc88bbbed7b;hb=780a97f8c8a8a0b61c687fbef4a1c8a08d131cda;hp=ed44d03ad3541736b04f2d0b033a1bc347a5f4ae;hpb=c8f9c302c26ba0e3a398ebe8005dc2a8b489cc2b;p=u-boot diff --git a/config.mk b/config.mk index ed44d03ad3..e2b440d8b2 100644 --- a/config.mk +++ b/config.mk @@ -211,6 +211,10 @@ CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes endif CFLAGS += $(call cc-option,-fno-stack-protector) +# Some toolchains enable security related warning flags by default, +# but they don't make much sense in the u-boot world, so disable them. +CFLAGS += $(call cc-option,-Wno-format-nonliteral) +CFLAGS += $(call cc-option,-Wno-format-security) # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g # option to the assembler.