From 698137ec38a3582954543685bffb1e937ab61c34 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 11 Apr 2013 13:49:13 +0200 Subject: [PATCH] cleanup: add gcc attribute for printf parameter --- libdm/libdevmapper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index 172976fd5..b3ba24dd2 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -1341,7 +1341,8 @@ int dm_fclose(FILE *stream); */ int dm_asprintf(char **buf, const char *format, ...) __attribute__ ((format(printf, 2, 3))); -int dm_vasprintf(char **buf, const char *format, va_list ap); +int dm_vasprintf(char **buf, const char *format, va_list ap) + __attribute__ ((format(printf, 2, 0))); /* * create lockfile (pidfile) - create and lock a lock file