diff options
author | Bruno Haible <bruno@clisp.org> | 2020-05-09 13:22:49 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-05-09 13:22:49 +0200 |
commit | 598afc1407a86340f948e5545f19c06afe13e059 (patch) | |
tree | b88e5a89ae952d165f217593bb4ff81882ed050d /lib/c-vasprintf.h | |
parent | 7dc2704acc113493518945b2f751dfb2882a698a (diff) | |
download | gnulib-598afc1407a86340f948e5545f19c06afe13e059.tar.gz |
Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
* lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
* lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
* lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
Diffstat (limited to 'lib/c-vasprintf.h')
-rw-r--r-- | lib/c-vasprintf.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/c-vasprintf.h b/lib/c-vasprintf.h index 3b5b5f7a68..588fbf01d9 100644 --- a/lib/c-vasprintf.h +++ b/lib/c-vasprintf.h @@ -20,18 +20,6 @@ /* Get va_list. */ #include <stdarg.h> -/* The __attribute__ feature is available in gcc versions 2.5 and later. - The __-protected variants of the attributes 'format' and 'printf' are - accepted by gcc versions 2.6.4 (effectively 2.7) and later. - We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because - gnulib and libintl do '#define printf __printf__' when they override - the 'printf' function. */ -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) -# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) -#else -# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */ -#endif - #ifdef __cplusplus extern "C" { #endif |