diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-16 12:25:09 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-12-18 15:37:20 -0500 |
commit | 5b38f658ee42bef05cecb6cadec65b25d9e94993 (patch) | |
tree | 7ee304714729b360a3d45658ca27358e03cd54e3 /src/opt.c | |
parent | fd91097055f095fdd827ef8751d9534f59a89404 (diff) | |
download | bfs-5b38f658ee42bef05cecb6cadec65b25d9e94993.tar.xz |
config: New variadic attr(...) macro
Diffstat (limited to 'src/opt.c')
-rw-r--r-- | src/opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -305,7 +305,7 @@ struct opt_state { }; /** Log an optimization. */ -attr_format(3, 4) +attr(format(3, 4)) static bool opt_debug(const struct opt_state *state, int level, const char *format, ...) { bfs_assert(state->ctx->optlevel >= level); @@ -321,7 +321,7 @@ static bool opt_debug(const struct opt_state *state, int level, const char *form } /** Warn about an expression. */ -attr_format(3, 4) +attr(format(3, 4)) static void opt_warning(const struct opt_state *state, const struct bfs_expr *expr, const char *format, ...) { if (bfs_expr_warning(state->ctx, expr)) { va_list args; |