Bruno Haible <[EMAIL PROTECTED]> wrote:
>>      Avoid link failure for the argmatch test.
>>      * tests/test-argmatch.c (usage): Define function to avoid a link
>>      failure: argmatch_die requires a usage function.
>
> This change may be justified inside coreutils. But in gnulib, the argmatch
> module does not make any reference to a 'usage' function. The link error
> comes from coreutils defining
>   #define ARGMATCH_DIE usage (1)
> in its config.h. Another package could be doing
>   #define ARGMATCH_DIE foobar (17)
> and by the same argumentation then we would need to define a function
> 'foobar' in the test. So adding a 'usage' function in the test does not
> smell like the right fix.
>
> Furthermore the signature of the usage() function that you added is not right.
>
> I propose this patch instead:

That looks perfect.
Thanks for fixing the underlying problem.


Reply via email to