From: Sami Kerola Date: Sat, 25 Feb 2012 21:55:58 +0000 (+0100) Subject: c.h: fix macro definition warning X-Git-Tag: v3.3.3~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d04a5a75c57be9e7ff15c4acfa4211fa658b489;p=procps-ng c.h: fix macro definition warning ../include/c.h:106:18: warning: ISO C does not permit named variadic macros [-Wvariadic-macros] ../include/c.h:107:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros] ../include/c.h:108:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros] ../include/c.h:109:26: warning: ISO C does not permit named variadic macros [-Wvariadic-macros] Signed-off-by: Sami Kerola --- diff --git a/include/c.h b/include/c.h index 747e4e38..737630bb 100644 --- a/include/c.h +++ b/include/c.h @@ -103,10 +103,10 @@ static inline char *prog_inv_sh_nm_from_file(char *f, char stripext) /* * Error printing. */ -#define xwarn(FMT...) error(0, errno, FMT) -#define xwarnx(FMT...) error(0, 0, FMT) -#define xerr(STATUS, FMT...) error(STATUS, errno, FMT) -#define xerrx(STATUS, FMT...) error(STATUS, 0, FMT) +#define xwarn(...) error(0, errno, __VA_ARGS__) +#define xwarnx(...) error(0, 0, __VA_ARGS__) +#define xerr(STATUS, ...) error(STATUS, errno, __VA_ARGS__) +#define xerrx(STATUS, ...) error(STATUS, 0, __VA_ARGS__) /* * Constant strings for usage() functions.