From 265030bba41f44423b69ea853a3407cd4009d68c Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 24 Apr 2023 13:55:47 +0200 Subject: test: self: printf: compile test with -Wno-format-security For testing purposes, the test code uses a variable for the format string at places, which -Wformat-security doesn't like. The printf test was copied over from the kernel, which sets -Wno-format-security globally. This may not be needed for barebox yet, but let's set at least for this one file. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20230424115548.114858-1-ahmad@a3f.at Signed-off-by: Sascha Hauer --- test/self/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/test/self/Makefile b/test/self/Makefile index d55d9133be..98ebd1fd66 100644 --- a/test/self/Makefile +++ b/test/self/Makefile @@ -3,6 +3,7 @@ obj-$(CONFIG_SELFTEST) += core.o obj-$(CONFIG_SELFTEST_MALLOC) += malloc.o obj-$(CONFIG_SELFTEST_PRINTF) += printf.o +CFLAGS_printf.o += -Wno-format-security obj-$(CONFIG_SELFTEST_PROGRESS_NOTIFIER) += progress-notifier.o obj-$(CONFIG_SELFTEST_OF_MANIPULATION) += of_manipulation.o of_manipulation.dtb.o obj-$(CONFIG_SELFTEST_ENVIRONMENT_VARIABLES) += envvar.o -- cgit v1.2.1