]> Savannah Git Hosting - gnulib.git/commit
stdio: limit __gnu_printf__ witness to gcc 4.4+
authorEric Blake <eblake@redhat.com>
Wed, 27 May 2015 03:27:44 +0000 (21:27 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 27 May 2015 03:27:44 +0000 (21:27 -0600)
commitc26527cebbbf42ed1dbc50df0074861e0ebe33dc
tree339a5a15b690c142af6dbd223d9662b75a4380c1
parentb62fec49d73b8e054cc0f388de21279bfb3d3592
stdio: limit __gnu_printf__ witness to gcc 4.4+

If we start adding more places that need to conditionally label
functions with __gnu_printf__, it will be nicer if the logic for
determining that gcc even supports that attribute is done once
up front rather than in each caller.

* lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
* m4/stdio_h.m4 (gl_STDIO_H): ...here.

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