git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] sh-18n: quell "unused variable" warning

From
Junio C Hamano <gitster@pobox.com>
Date
May 25, 2011, 16:35 UTC
Message-ID
<7vy61u4u1y.fsf@alter.siamese.dyndns.org>
In-Reply-To
<62c2e1619edcb37c0411f29a34b6bc10e3899a97.1306317312.git.git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 11 quoted lines
>     CC sh-i18n--envsubst.o
> sh-i18n--envsubst.c: In Funktion »main«:
> sh-i18n--envsubst.c:71:22: Warnung: Variable »show_variables« gesetzt,
> aber nicht verwendet [-Wunused-but-set-variable]
>
> show_variables is indeed unused. Comment it out rather than remove it so
> that the relation with upstream remains clear.
>
> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
> ---
> Why is it that even with LANG=C exported, gcc gives localized warnings?
Because you probably do not have LC_ALL=C?
In any case, thanks.
Previous: Michael J GruberNext: Ævar Arnfjörð Bjarmason
Message 2 of 5 in “sh-18n: quell "unused variable" warning”
  1. sh-18n: quell "unused variable" warningMichael J Gruber, May 25, 2011
  2. Junio C HamanoMay 25, 2011
  3. Ævar Arnfjörð BjarmasonMay 25, 2011
  4. Michael J GruberMay 26, 2011
  5. Ævar Arnfjörð BjarmasonMay 26, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.