summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2023-04-24 13:55:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-05-02 11:17:09 +0200
commit265030bba41f44423b69ea853a3407cd4009d68c (patch)
tree0d6761788faa643c95c8d3b0e01b0dcc0f338578
parentbba840ae781fb254f39db8dc05343b630483604c (diff)
downloadbarebox-265030bba41f44423b69ea853a3407cd4009d68c.tar.gz
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 <ahmad@a3f.at> Link: https://lore.barebox.org/20230424115548.114858-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--test/self/Makefile1
1 files changed, 1 insertions, 0 deletions
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