summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-03-15 14:05:34 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-03-15 14:05:34 (EDT)
commitdf2169dc7f745796ce67c2e895889bc005b80c83 (patch)
treeb37d89b01b3a1150b349f82ee58ad94dde9c13e1 /src
parent2749e3629da8b5a4c1d59eb1cd9a98f232929123 (diff)
downloaddodge-balls-df2169dc7f745796ce67c2e895889bc005b80c83.zip
dodge-balls-df2169dc7f745796ce67c2e895889bc005b80c83.tar.gz
dodge-balls-df2169dc7f745796ce67c2e895889bc005b80c83.tar.bz2
src/output.h: Add format attributes to functions
Diffstat (limited to 'src')
-rw-r--r--src/output.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/output.h b/src/output.h
index 11737c6..e4ee278 100644
--- a/src/output.h
+++ b/src/output.h
@@ -19,8 +19,11 @@
#ifndef DB_OUTPUT_H_
#define DB_OUTPUT_H_
-void db_dbg(const char *fmt, ...);
-void db_warn(const char *fmt, ...);
-void db_err(const char *fmt, ...);
+void db_dbg(const char *fmt, ...)
+ __attribute__((__format__(__printf__, 1, 2)));
+void db_warn(const char *fmt, ...)
+ __attribute__((__format__(__printf__, 1, 2)));
+void db_err(const char *fmt, ...)
+ __attribute__((__format__(__printf__, 1, 2)));
#endif /* DB_OUTPUT_H_ */