X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fmytypes.h;h=964abf820d92a3009208dc0e2a00aca231f86117;hb=0509be3542344cf27658df9935d930cb2d2b9560;hp=5215777f8e369d9409e21e6a12278d5deb133ddf;hpb=3634fc257bd0667daef14d72005cd87c735bbb24;p=exim.git diff --git a/src/src/mytypes.h b/src/src/mytypes.h index 5215777f8..964abf820 100644 --- a/src/src/mytypes.h +++ b/src/src/mytypes.h @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2012 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -31,8 +31,16 @@ the arguments of printf-like functions. This is done by a macro. */ #if defined(__GNUC__) || defined(__clang__) #define PRINTF_FUNCTION(A,B) __attribute__((format(printf,A,B))) +#define ARG_UNUSED __attribute__((__unused__)) #else #define PRINTF_FUNCTION(A,B) +#define ARG_UNUSED /**/ +#endif + +#ifdef WANT_DEEPER_PRINTF_CHECKS +#define ALMOST_PRINTF(A, B) PRINTF_FUNCTION(A, B) +#else +#define ALMOST_PRINTF(A, B) #endif