mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r18649: the PRINTF_ATTRIUTE() macro is provided by libreplace
metze
This commit is contained in:
parent
cbc3f09263
commit
dd76f4f5f3
@ -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. **/
|
||||
|
@ -207,7 +207,7 @@ int rep_dlclose(void *handle);
|
||||
|
||||
|
||||
#ifndef PRINTF_ATTRIBUTE
|
||||
#if __GNUC__ >= 3
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user