On 12/02/2013 11:18 AM, Eric Blake wrote:
> So the correct fix is the use
> of #pragma GCC diagnostic to shut up the compiler's warning

Another possibility is to use obscurer code that GCC
can't figure out; that's what we did for the empty-string
warning.

I can't reproduce the problem on my
platform (Fedora 19 with its GCC 4.8.2).  Here's how I
tried to reproduce it:

./gnulib-tool --create-testdir --dir foo xvasprintf
cd foo
./configure CFLAGS='-Wformat -Werror=format-security -O2'
make
make check


Reply via email to