bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar.c:237: warning: too few arguments for format


From: Eric Blake
Subject: Re: [Bug-tar] tar.c:237: warning: too few arguments for format
Date: Sun, 12 Feb 2006 02:23:49 +0000

> 
> 2006-02-08  Jim Meyering  <address@hidden>
> 
>       * src/tar.c (tar_set_quoting_style): Add program_name argument,
>       corresponding to unmatched %s in format string.

Sergey, your replacement patch fails on non-glibc platforms:

make[2]: Entering directory `/home/eblake/tar/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib     -g -O2 -MT 
tar.o -MD -MP -MF ".deps/tar.Tpo" -c -o tar.o tar.c; \
then mv -f ".deps/tar.Tpo" ".deps/tar.Po"; else rm -f ".deps/tar.Tpo"; exit 1; 
fi
tar.c: In function `tar_set_quoting_style':
tar.c:238: error: `program_invocation_short_name' undeclared (first use in this 
function)
tar.c:238: error: (Each undeclared identifier is reported only once
tar.c:238: error: for each function it appears in.)
make[2]: *** [tar.o] Error 1

Maybe you should consider using the gnulib progname module, or
look at reusing __argp_short_program_name from argp-help.c...

--
Eric Blake




reply via email to

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