From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <ahmad@a3f.at>
Subject: [PATCH 1/2] test: self: printf: compile test with -Wno-format-security
Date: Mon, 24 Apr 2023 13:55:47 +0200 [thread overview]
Message-ID: <20230424115548.114858-1-ahmad@a3f.at> (raw)
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>
---
test/self/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/self/Makefile b/test/self/Makefile
index d55d9133be23..98ebd1fd66c1 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
--
2.38.4
next reply other threads:[~2023-04-24 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-24 11:55 Ahmad Fatoum [this message]
2023-04-24 11:55 ` [PATCH 2/2] treewide: use non-executable stack annotations for blobs Ahmad Fatoum
2023-05-02 9:17 ` [PATCH 1/2] test: self: printf: compile test with -Wno-format-security Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230424115548.114858-1-ahmad@a3f.at \
--to=ahmad@a3f.at \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox