This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=3665b24c8d9e4da0974387f3dc4bc19a6097262f commit 3665b24c8d9e4da0974387f3dc4bc19a6097262f Author: Guillem Jover <[email protected]> AuthorDate: Tue Dec 6 19:27:37 2022 +0100 libcompat: Remove unused arguments from ngettext() fallback macro This is confusing the compiler and it stops seeing the argument as a literal string so it cannot check the format string. Warned-by: gcc -Wformat-nonliteral on musl-libc --- lib/compat/gettext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compat/gettext.h b/lib/compat/gettext.h index 5075c750a..1caaaaddd 100644 --- a/lib/compat/gettext.h +++ b/lib/compat/gettext.h @@ -70,8 +70,8 @@ ((void) (Category), dgettext (Domainname, Msgid)) # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ - ? ((void) (Msgid2), (const char *) (Msgid1)) \ - : ((void) (Msgid1), (const char *) (Msgid2))) + ? (const char *)(Msgid1) \ + : (const char *)(Msgid2)) # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ -- Dpkg.Org's dpkg

