bug-gnulib@gnu.org

2013-03-19 Thread Eric Blake
On 03/19/2013 03:20 PM, Karl Berry wrote: > Is there a portability reason to use 1>&2 vs. just >&2 to redirect to stderr? > I don't know of one, and don't see it mentioned in autoconf(Portable Shell). As far as I know, all shells treat both as synonyms. 1>&2 is a bit more explicit about what is h

bug-gnulib@gnu.org

2013-03-19 Thread Karl Berry
Is there a portability reason to use 1>&2 vs. just >&2 to redirect to stderr? I don't know of one, and don't see it mentioned in autoconf(Portable Shell). The gnupload script currently uses both. Just wondering. k

Re: cppcheck error in opendir.c

2013-03-19 Thread Arno Onken
On 03/19/2013 08:57 PM, Paul Eggert wrote: > On 03/19/13 11:59, Arno Onken wrote: >> cppcheck version 1.58 reports the following error on the latest >> Savannah respository checkout of gnulib (last change Tue, 19 Mar 2013 >> 17:47:12 +): >> >> [lib/opendir.c:140]: (error) Mismatching allocation

Re: cppcheck error in opendir.c

2013-03-19 Thread Paul Eggert
On 03/19/13 11:59, Arno Onken wrote: > cppcheck version 1.58 reports the following error on the latest > Savannah respository checkout of gnulib (last change Tue, 19 Mar 2013 > 17:47:12 +): > > [lib/opendir.c:140]: (error) Mismatching allocation and deallocation: dirp I don't see why this dia

cppcheck error in opendir.c

2013-03-19 Thread Arno Onken
cppcheck version 1.58 reports the following error on the latest Savannah respository checkout of gnulib (last change Tue, 19 Mar 2013 17:47:12 +): [lib/opendir.c:140]: (error) Mismatching allocation and deallocation: dirp

Re: ::gettimeofday' has not been declared - on cygwin

2013-03-19 Thread marco atzeri
On 3/19/2013 5:12 PM, Paul Eggert wrote: On 03/19/2013 03:15 AM, marco atzeri wrote: http://matzeri.altervista.org/works/include/ for what I see includes but none of the two include directly I think I see an indirect inclusion. Does the attached gnulib patch fix things for you? I'll

Re: cppcheck errors and gcc warning

2013-03-19 Thread Paul Eggert
Thanks. The rpmatch.c issue is a true memory leak. The three regcomp.c issues seem to be false alarms: that code is not compiled for gnulib and the diagnostics suggest that there may be a bug in cppcheck. The copy-file.c issue is not a real bug but I suppose other people will run into the false

Re: ::gettimeofday' has not been declared - on cygwin

2013-03-19 Thread Paul Eggert
On 03/19/2013 03:15 AM, marco atzeri wrote: http://matzeri.altervista.org/works/include/ for what I see includes but none of the two include directly I think I see an indirect inclusion. Does the attached gnulib patch fix things for you? I'll CC: this to Tom Christensen, as this is fa

cppcheck errors and gcc warning

2013-03-19 Thread Arno Onken
cppcheck version 1.58 reports the following errors on the latest Savannah respository checkout of gnulib (last changeSat, 16 Mar 2013 05:13:46 +): [lib/rpmatch.c:113]: (error) Memory leak: safe_pattern [lib/regcomp.c:2848]: (error) Uninitialized variable: symb_table [lib/regcomp.c:2847]: (erro

Re: ::gettimeofday' has not been declared - on cygwin

2013-03-19 Thread marco atzeri
On 3/19/2013 7:34 AM, Paul Eggert wrote: On 03/01/2013 08:40 PM in marco atzeri wrote: reverting the commit: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=db61fd22822da6974c2ca4caa2975d74229a4c70 solves t