From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: /, bin/install-qa-check.d/
Date: Wed, 9 Nov 2022 03:38:18 +0000 (UTC) [thread overview]
Message-ID: <1667965093.c4df46e3da5fee516dba000ade492c2462db99fd.sam@gentoo> (raw)
commit: c4df46e3da5fee516dba000ade492c2462db99fd
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 9 03:36:39 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 9 03:38:13 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c4df46e3
install-qa-check.d/90gcc-warnings: update outdated -Wformat pattern
This only covers missing specifiers. We may add generic -Wformat (as commented
out) for time_t & LFS stuff later on, but I don't want to do it in portage 3.0.39
as we're adding enough new stuff here.
Signed-off-by: Sam James <sam <AT> gentoo.org>
NEWS | 3 +++
bin/install-qa-check.d/90gcc-warnings | 6 +++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index cf3487e4b..6fe36cbe0 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,9 @@ Features:
* -Wint-to-pointer-cast
* -Wpointer-to-int-cast
* -Wint-to-void-pointer-cast
+ * Further -Wformat matches for missing specifiers.
+ In future, we may warn on all -Wformat (in particular because of e.g.
+ time_t & LFS).
* install-qa-check.d: 90gcc-warnings: Always die on -Wimplicit-function-declaration
and remove bin/check-implicit-pointer-usage.py of dubious licencing (it was
diff --git a/bin/install-qa-check.d/90gcc-warnings b/bin/install-qa-check.d/90gcc-warnings
index cdffcd029..d8322871b 100644
--- a/bin/install-qa-check.d/90gcc-warnings
+++ b/bin/install-qa-check.d/90gcc-warnings
@@ -69,8 +69,12 @@ gcc_warn_check() {
# warning: cast from ... to integer of different size
'warning: .*\[-Wpointer-to-int-cast\]'
- # outdated?
+ # -Wformat
+ # TODO: comment out some time in future for time_t & LFS preparedness
+ #'warning: .*\[-Wformat=\]'
+ # -Wformat variants
'warning: .*too few arguments for format'
+ 'warning: .*missing sentinel in function call.*\[-Wformat=\]'
# format ... expects a matching ... argument
# (iow, too few arguments for format in new wording :))
'warning: .*matching.*\[-Wformat=\]'
next reply other threads:[~2022-11-09 3:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 3:38 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-02-25 8:15 [gentoo-commits] proj/portage:master commit in: /, bin/install-qa-check.d/ Sam James
2023-04-07 10:41 Sam James
2022-11-20 23:33 Sam James
2022-11-09 7:39 Sam James
2022-11-09 7:30 Sam James
2022-11-09 3:31 Sam James
2022-08-23 0:33 Sam James
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=1667965093.c4df46e3da5fee516dba000ade492c2462db99fd.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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