From ededa3ed1cf0d02fcdb9a42d44d46a84fec1c58e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 8 Dec 2022 16:43:29 -0500 Subject: opt: Pass a va_list to bfs_vwarning(), not bfs_warning() Luckily none of the callers actually pass any arguments. --- src/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/opt.c') diff --git a/src/opt.c b/src/opt.c index 56d4102..3250331 100644 --- a/src/opt.c +++ b/src/opt.c @@ -339,7 +339,7 @@ static void opt_warning(const struct opt_state *state, const struct bfs_expr *ex if (bfs_expr_warning(state->ctx, expr)) { va_list args; va_start(args, format); - bfs_warning(state->ctx, format, args); + bfs_vwarning(state->ctx, format, args); va_end(args); } } -- cgit v1.2.3