[PATCH evemu 2/5] Mark the error() function as format printf

Peter Hutterer peter.hutterer at who-t.net
Thu Oct 20 23:11:12 UTC 2016


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evemu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/evemu.c b/src/evemu.c
index df1393b..295b5d6 100644
--- a/src/evemu.c
+++ b/src/evemu.c
@@ -70,6 +70,9 @@ enum error_level {
 };
 
 static int error(enum error_level level, const char *format, ...)
+	        __attribute__ ((format (printf, 2, 3)));
+
+static int error(enum error_level level, const char *format, ...)
 {
 	va_list args;
 	const char *strlevel = NULL;
-- 
2.9.3



More information about the Input-tools mailing list