From: Rainer Gerhards Date: Tue, 10 Mar 2015 13:13:38 +0000 (+0100) Subject: silence compiler warning X-Git-Tag: v2.27-rc1~371^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eb3c8d77e5323d313e555107bf5b27ded2d1c1c;p=thirdparty%2Futil-linux.git silence compiler warning This is primarily cosmetic, albeit it also provides an only very slight improvement in compile time error checking. --- diff --git a/include/xalloc.h b/include/xalloc.h index f012fb2946..2264eba8ea 100644 --- a/include/xalloc.h +++ b/include/xalloc.h @@ -91,7 +91,8 @@ static inline int __attribute__ ((__format__(printf, 2, 3))) return ret; } -static inline int xvasprintf(char **strp, const char *fmt, va_list ap) +static inline int __attribute__ ((__format__(printf, 2, 0))) +xvasprintf(char **strp, const char *fmt, va_list ap) { int ret = vasprintf(&(*strp), fmt, ap); if (ret < 0)