bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: snippets/unused-parameter


From: Bruno Haible
Subject: Re: snippets/unused-parameter
Date: Sun, 30 Jan 2022 11:52:48 +0100

Paul Eggert wrote:
> > 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.

I would advise against that. Identifiers that begin with _GL are
Gnulib-private. That means, they can change their meaning or their
spelling, or go away entirely, at any moment. They are not part
of the formal interface of any module.

Instead, I would suggest to use a proper module with a defined
interface, namely the 'attribute' module. This module exports a
macro 'MAYBE_UNUSED', which is documented in attribute.h.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]