mbpfan-josie

Annotate mbp_log as having printf parameters

0a9f03e6150affc8ed170076b42146ebc6fd579a
Andrew Gaul <andrew@gaul.org> · 2019-11-24T13:51 · browse files at this commit

parents: b21aaa8

diff --git a/src/util.h b/src/util.h
index 1f3819e..9bf99ce 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,6 @@
 #ifndef _UTIL_H_
 #define _UTIL_H_
 
-void mbp_log(int level, const char *fmt, ...);
+void mbp_log(int level, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
 
 #endif