From 808ce6d60568d9bee658ee704d58efcbe8dd3a32 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 26 Feb 2026 00:28:36 +0100 Subject: [PATCH] Fix deprecation warnings not silenced. --- src/compiler/parse_global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/parse_global.c b/src/compiler/parse_global.c index 448270832..ed64cfccf 100644 --- a/src/compiler/parse_global.c +++ b/src/compiler/parse_global.c @@ -2870,7 +2870,7 @@ static bool parse_enum_values(ParseContext *c, Decl*** values_ref, Visibility vi if (!is_constdef && deprecate_warn) { deprecate_warn = false; - print_deprecation_at(c->prev_span, "Use {} declaration of associated values instead."); + PRINT_DEPRECATED_AT(c->prev_span, "Use {} declaration of associated values instead."); } if (is_single_value || !tok_is(c, TOKEN_LBRACE)) { @@ -2990,7 +2990,7 @@ static inline Decl *parse_enum_declaration(ParseContext *c) is_constdef = try_consume(c, TOKEN_CONST); if (is_constdef) { - print_deprecation_at(c->prev_span, "Declare constdefs using 'constdef' instead."); + PRINT_DEPRECATED_AT(c->prev_span, "Declare constdefs using 'constdef' instead."); } } if (!tok_is(c, TOKEN_LPAREN) && !tok_is(c, TOKEN_LBRACE))