diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-07 18:34:07 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-07 18:34:07 +0100 |
commit | 13ef1266e96335725e4b00cbe84753cfb1d9c52c (patch) | |
tree | 1f06fe28c309b2b5e2f24bc4cf440212c717b9cc /src/xine-utils | |
parent | 78689bf5bbd1dbe879d50aa0667db4603230390b (diff) | |
download | xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.gz xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.bz2 |
Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly.
Diffstat (limited to 'src/xine-utils')
-rw-r--r-- | src/xine-utils/attributes.h | 12 | ||||
-rw-r--r-- | src/xine-utils/xine_check.c | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h index 4d22226ac..b533286c8 100644 --- a/src/xine-utils/attributes.h +++ b/src/xine-utils/attributes.h @@ -69,4 +69,16 @@ # endif #endif +/* Format attributes */ +#ifdef SUPPORT_ATTRIBUTE_FORMAT +# define XINE_FORMAT_PRINTF(fmt,var) __attribute__((format(printf, fmt, var))) +#else +# define XINE_FORMAT_PRINTF(fmt,var) +#endif +#ifdef SUPPORT_ATTRIBUTE_FORMAT_ARG +# define XINE_FORMAT_PRINTF_ARG(fmt) __attribute__((format_arg(fmt))) +#else +# define XINE_FORMAT_PRINTF_ARG(fmt) +#endif + #endif /* ATTRIBUTE_H_ */ diff --git a/src/xine-utils/xine_check.c b/src/xine-utils/xine_check.c index 43e046a45..f6a0498e8 100644 --- a/src/xine-utils/xine_check.c +++ b/src/xine-utils/xine_check.c @@ -72,10 +72,7 @@ #endif /* !__linux__ */ -static void -#ifdef __GNUC__ -__attribute__((format (printf, 3, 4))) -#endif +static void XINE_FORMAT_PRINTF(3, 4) set_hc_result(xine_health_check_t* hc, int state, const char *format, ...) { |