1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-30 20:23:49 +03:00
This commit is contained in:
Martin Pool
-
parent 25b97a7435
commit 5b6c22a209
2 changed files with 9 additions and 1 deletions

View File

@@ -54,8 +54,10 @@
#endif
#endif
/* use gcc attribute to check printf fns */
#ifdef __GNUC__
/** 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. **/
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
#else
#define PRINTF_ATTRIBUTE(a1, a2)