From 29a49f5d150911428a35943be8d9fc226865eb1b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 2 Jan 2019 17:00:40 -0500 Subject: color: Check format strings + args for cfprintf() %{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings. --- diag.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'diag.h') diff --git a/diag.h b/diag.h index 24ee92a..e84bbc1 100644 --- a/diag.h +++ b/diag.h @@ -18,16 +18,19 @@ #define BFS_DIAG_H #include "cmdline.h" +#include "util.h" #include /** * Shorthand for printing error messages. */ +BFS_FORMATTER(2, 3) void bfs_error(const struct cmdline *cmdline, const char *format, ...); /** * Shorthand for printing warning messages. */ +BFS_FORMATTER(2, 3) void bfs_warning(const struct cmdline *cmdline, const char *format, ...); /** -- cgit v1.2.3