bug-gnulib
[Top][All Lists]
Advanced

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

Re: modules and program name


From: Sergey Poznyakoff
Subject: Re: modules and program name
Date: Fri, 09 Dec 2005 11:42:21 EET

Eric Blake <address@hidden> wrote:

> I noticed when compiling tar on cygwin that I got a warning:
> if gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -I. -I. -I..     -g2 -Wall 
> -Werror -MT argp-help.o -MD -MP -MF ".deps/argp-help.Tpo" -c -o argp-help.o 
> argp-help.c; \
> then mv -f ".deps/argp-help.Tpo" ".deps/argp-help.Po"; else rm -f 
> ".deps/argp-help.Tpo"; exit 1; fi
> argp-help.c:1693:4: #warning No reasonable value to return

This has already been fixed in the CVS.
 
> Further looking at the argp-help module shows that tries using
> strrchr(program_invocation_name, '/') which is not portable

Mailutils uses '/' in many places. It won't compile on MSDOS, anyway,
and I don't believe it would be worth the trouble to port it there.

> it would probably be wise to change argp-help
> to use program_name in the same way that the error module
> does.

No, I prefer to use program_invocation_short_name/program_invocation_name,
as I already did in CVS head.

Regards,
Sergey





reply via email to

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