Paul Eggert <[email protected]> writes: > - locale_code = locale_charset (); > - if (STRCASEEQ (locale_code, "UTF-8", 'U','T','F','-','8',0,0,0,0)) > - return msgid[0] == '`' ? "\xe2\x80\x98": "\xe2\x80\x99"; > - if (STRCASEEQ (locale_code, "GB18030", 'G','B','1','8','0','3','0',0,0)) > - return msgid[0] == '`' ? "\xa1\ae": "\xa1\xaf";
I pushed the attached patch to remove the now unused 'locale_code' variable, so GCC doesn't complain about it in Coreutils. Collin
>From 4883d9e60ee286c7290e51f3b0562893a4b7a4bc Mon Sep 17 00:00:00 2001 Message-ID: <4883d9e60ee286c7290e51f3b0562893a4b7a4bc.1757123585.git.collin.fu...@gmail.com> From: Collin Funk <[email protected]> Date: Fri, 5 Sep 2025 18:52:43 -0700 Subject: [PATCH] quotearg: Remove an unused variable. * lib/quotearg.c (gettext_quote): Remove a variable that is no longer used after yesterdays changes. --- ChangeLog | 6 ++++++ lib/quotearg.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3ec2fff3ec..7e019dfb78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-09-05 Collin Funk <[email protected]> + + quotearg: Remove an unused variable. + * lib/quotearg.c (gettext_quote): Remove a variable that is no longer + used after yesterdays changes. + 2025-09-05 Paul Eggert <[email protected]> dfa, propername-lite, quotearg: prefer mbszero diff --git a/lib/quotearg.c b/lib/quotearg.c index 24f5e18221..7de7555238 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -198,7 +198,6 @@ static char const * gettext_quote (char const *msgid, enum quoting_style s) { char const *translation = _(msgid); - char const *locale_code; if (translation != msgid) return translation; -- 2.51.0
