Re: Todo for libposix branch?

2011-05-29 Thread Bruno Haible
Hi Reuben, On 2011-05-03 you wrote: > Is there a public todo for the libposix branch? If so, could it go in > the branch somewhere visible? If not, is there any way I can help > gather up the material for one? I'm keen now to see libposix a > reality, so I'd like to see what still needs to be done

strerror_r and argp

2011-05-29 Thread Bruno Haible
When compiling a testdir with argp and strerror_r-posix on a glibc system, I get this warning: argp-help.c:1921: warning: assignment makes pointer from integer without a cast This patch fixes it. 2011-05-29 Bruno Haible argp: Allow coexistence with strerror_r-posix module. *

Re: proposed support for C1X-style static_assert

2011-05-29 Thread Bruno Haible
Hi Paul, > > "verify.h" no longer defines the 'verify' macro if > > was already included in the same compilation unit. > > Thanks, I pushed this fix: This is better: The error is gone. But there are warnings now: $ ./gnulib-tool --test assert-h exclude ... In file included from ../../gllib/exc

Re: proposed support for C1X-style static_assert

2011-05-29 Thread Bruno Haible
Paul Eggert wrote: > +assert.h: assert.in.h verify.h $(top_builddir)/config.status > + $(AM_V_GEN)rm -f $@-t $@ && \ > + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ > + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ > + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAG

Re: Todo for libposix branch?

2011-05-29 Thread Reuben Thomas
Thanks very much for that, a place to check whenever I feel the urge to do something libposix-ish saves a round of email every time.

two small patches to accommodate -Wstrict-overflow

2011-05-29 Thread Jim Meyering
I won't do much for -Wstrict-overflow, but so far, not much has been required to get close to warning-free. >From 244906802a300a1744de8881857a3a2897b3db8b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 28 May 2011 16:00:20 +0200 Subject: [PATCH 1/2] trim: avoid a warning from -O2 -Wstrict

regex-quote.c fails to build on Solaris 2.6

2011-05-29 Thread Tom G. Christensen
Hello, While trying to build a snapshot of gnulib on Solaris 2.6 I got this build error: depbase=`echo regex-quote.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -D_REENTRANT -g -O2 -MT regex-quote.o -MD -MP -MF $depbase.Tpo -c -o regex-q

Re: two small patches to accommodate -Wstrict-overflow

2011-05-29 Thread Bruno Haible
Hi Jim, Jim Meyering wrote: > diff --git a/lib/trim.c b/lib/trim.c > index 1f4d0c1..6515cfa 100644 > --- a/lib/trim.c > +++ b/lib/trim.c > @@ -65,7 +65,7 @@ trim2 (const char *s, int how) >/* Trim trailing whitespaces. */ >if (how != TRIM_LEADING) > { > - int stat

Re: two small patches to accommodate -Wstrict-overflow

2011-05-29 Thread Bruno Haible
Hi Jim, > diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y > index d77955f..23a9a41 100644 > --- a/lib/parse-datetime.y > +++ b/lib/parse-datetime.y > @@ -1119,7 +1119,7 @@ yylex (YYSTYPE *lvalp, parser_control *pc) > >            do >              { > -              if (p < buff + sizeof

Re: regex-quote.c fails to build on Solaris 2.6

2011-05-29 Thread Bruno Haible
Hello, Tom G. Christensen wrote: > While trying to build a snapshot of gnulib on Solaris 2.6 I got this > build error: > depbase=`echo regex-quote.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -D_REENTRANT > -g -O2 -MT regex-quote.o -M

Re: two small patches to accommodate -Wstrict-overflow

2011-05-29 Thread Jim Meyering
Bruno Haible wrote: > Hi Jim, > > Jim Meyering wrote: >> diff --git a/lib/trim.c b/lib/trim.c >> index 1f4d0c1..6515cfa 100644 >> --- a/lib/trim.c >> +++ b/lib/trim.c >> @@ -65,7 +65,7 @@ trim2 (const char *s, int how) >>/* Trim trailing whitespaces. */ >>if (how != TRIM_LEADING) >

Re: proposed support for C1X-style static_assert

2011-05-29 Thread Paul Eggert
On 05/29/11 06:08, Bruno Haible wrote: > Hi Paul, > >>> "verify.h" no longer defines the 'verify' macro if >>> was already included in the same compilation unit. >> >> Thanks, I pushed this fix: > > This is better: The error is gone. But there are warnings now: Thanks for catching that. I appl

Re: regex-quote.c fails to build on Solaris 2.6

2011-05-29 Thread Tom G. Christensen
On Sun, May 29, 2011 at 09:42:19PM +0200, Bruno Haible wrote: > Hello, > > Tom G. Christensen wrote: > > The problem is that /usr/include/euc.h has this: > > #define multibyte (__ctype[520] > 1) > > That file is being included by which is included by > > which is included by gnulib wctype.