[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnulib-bug
Subject:    Re: modules and program name
From:       "Sergey Poznyakoff" <gray () Mirddin ! farlep ! net>
Date:       2005-12-09 11:42:21
Message-ID: 200512090942.jB99gLp26001 () Mirddin ! farlep ! net
[Download RAW message or body]

Eric Blake <ericblake@comcast.net> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic