mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
Use attribute __gnu_printf__ also in estream header files.
* common/estream-printf.h: Use attribute gnu_printf. * common/estream.h: Ditto.
This commit is contained in:
parent
36372dcb2f
commit
72133b54de
@ -99,11 +99,15 @@
|
|||||||
#endif /*_ESTREAM_EXT_SYM_PREFIX*/
|
#endif /*_ESTREAM_EXT_SYM_PREFIX*/
|
||||||
|
|
||||||
#ifndef _ESTREAM_GCC_A_PRINTF
|
#ifndef _ESTREAM_GCC_A_PRINTF
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
|
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4 )
|
||||||
# define _ESTREAM_GCC_A_PRINTF( f, a ) __attribute__ ((format (printf,f,a)))
|
# define _ESTREAM_GCC_A_PRINTF( f, a ) \
|
||||||
#else
|
__attribute__ ((format (__gnu_printf__,f,a)))
|
||||||
# define _ESTREAM_GCC_A_PRINTF( f, a )
|
# elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
|
||||||
#endif
|
# define _ESTREAM_GCC_A_PRINTF( f, a ) \
|
||||||
|
__attribute__ ((format (printf,f,a)))
|
||||||
|
# else
|
||||||
|
# define _ESTREAM_GCC_A_PRINTF( f, a )
|
||||||
|
# endif
|
||||||
#endif /*_ESTREAM_GCC_A_PRINTF*/
|
#endif /*_ESTREAM_GCC_A_PRINTF*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -241,11 +241,15 @@ typedef struct
|
|||||||
|
|
||||||
|
|
||||||
#ifndef _ESTREAM_GCC_A_PRINTF
|
#ifndef _ESTREAM_GCC_A_PRINTF
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
|
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4 )
|
||||||
# define _ESTREAM_GCC_A_PRINTF( f, a ) __attribute__ ((format (printf,f,a)))
|
# define _ESTREAM_GCC_A_PRINTF( f, a ) \
|
||||||
#else
|
__attribute__ ((format (__gnu_printf__,f,a)))
|
||||||
# define _ESTREAM_GCC_A_PRINTF( f, a )
|
# elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
|
||||||
#endif
|
# define _ESTREAM_GCC_A_PRINTF( f, a ) \
|
||||||
|
__attribute__ ((format (printf,f,a)))
|
||||||
|
# else
|
||||||
|
# define _ESTREAM_GCC_A_PRINTF( f, a )
|
||||||
|
# endif
|
||||||
#endif /*_ESTREAM_GCC_A_PRINTF*/
|
#endif /*_ESTREAM_GCC_A_PRINTF*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user