]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
silence compiler warning
authorRainer Gerhards <rgerhards@adiscon.com>
Tue, 10 Mar 2015 13:13:38 +0000 (14:13 +0100)
committerRainer Gerhards <rgerhards@adiscon.com>
Tue, 10 Mar 2015 13:13:38 +0000 (14:13 +0100)
This is primarily cosmetic, albeit it also provides an only very
slight improvement in compile time error checking.

include/xalloc.h

index f012fb2946d3bd6790694f644f1f95e86c5f8914..2264eba8ea0dec164c0e6033065ea95399789927 100644 (file)
@@ -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)