From df2169dc7f745796ce67c2e895889bc005b80c83 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 15 Mar 2021 14:05:34 -0400 Subject: src/output.h: Add format attributes to functions --- (limited to 'src/output.h') 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_ */ -- cgit v0.9.1