1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00

r18649: the PRINTF_ATTRIUTE() macro is provided by libreplace

metze
This commit is contained in:
Stefan Metzmacher
2006-09-18 23:26:14 +00:00
committed by Gerald (Jerry) Carter
parent cbc3f09263
commit dd76f4f5f3
2 changed files with 1 additions and 12 deletions

View File

@@ -95,17 +95,6 @@
#endif
#endif
#if (__GNUC__ >= 3 ) && (__GNUC_MINOR__ >= 1 )
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
* the parameter containing the format, and a2 the index of the first
* argument. Note that some gcc 2.x versions don't handle this
* properly **/
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)
#endif
#if defined(__GNUC__) && !defined(__cplusplus)
/** gcc attribute used on function parameters so that it does not emit
* warnings about them being unused. **/