]> Savannah Git Hosting - gnulib.git/commit
error: use correct printf attributes on mingw
authorEric Blake <eblake@redhat.com>
Tue, 26 May 2015 23:26:15 +0000 (17:26 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 26 May 2015 23:32:53 +0000 (17:32 -0600)
commitb62fec49d73b8e054cc0f388de21279bfb3d3592
treed670afd37b3a3501f6d0bbb742b508755099bd99
parent7f573b802f70546b07bd9fbacb943ae31f127553
error: use correct printf attributes on mingw

Now that we always turn on __USE_MINGW_ANSI_STDIO when extensions
are in use, we need to replicate the same logic in error.h as
we have in stdio.h, for selecting the correct format string that
will squelch gcc -Wformat=2 warnings.

Reported by Assaf Gordon.

* lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/error.h