|
From: | Paul Eggert |
Subject: | Re: snippets/unused-parameter |
Date: | Wed, 26 Jan 2022 19:56:14 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 1/26/22 19:17, Thien-Thi Nguyen wrote:
I just now updated a local gnulib tree and re-ran autogen.sh (for GNU RCS), and i see: Notice from module snippet/unused-parameter: This module is obsolete. The gnulib.info documentation mentions "obsolete" in several places, but it seems to be oriented toward gnulib hackers rather than users. My question is: What should i do w/ this module? (a) Leave it alone -- "obsolete" is not "broken".
That's OK in the short term but in the long run I suggest using _GL_UNUSED instead.
Related question: Where can i find info on how/why this module became obsolete?
I used the shell command 'git log modules/snippet/unused-parameter', which pointed me to commit d3837928885e91c9ddd465240b90a97aa342fda6 dated 2021-08-22. Here's part of the email chain on this topic:
https://lists.gnu.org/r/bug-gnulib/2021-08/msg00146.html https://lists.gnu.org/r/bug-gnulib/2021-08/msg00109.html https://lists.gnu.org/r/bug-gnulib/2021-08/msg00097.htmlYou're right that this is a bit obscure. The short version is: use _GL_UNUSED instead of _GL_UNUSED_PARAMETER. You can see examples of how to use _GL_UNUSED in Gnulib: it goes at the start of the parameter declaration.
[Prev in Thread] | Current Thread | [Next in Thread] |