Refactor casts and make untyped list conversions not dependent on context.

This commit is contained in:
Christoffer Lerno
2025-02-01 23:37:32 +01:00
parent dc6d994480
commit f8b2f7f268
8 changed files with 263 additions and 169 deletions

View File

@@ -4190,7 +4190,7 @@ bool sema_analyse_var_decl(SemaContext *context, Decl *decl, bool local)
if (type_is_user_defined(type) && type->decl)
{
if (!sema_analyse_decl(context, type->decl)) return false;
sema_display_deprecated_warning_on_use(context, type->decl, type_info->span);
sema_display_deprecated_warning_on_use(type->decl, type_info->span);
}
if (is_static && context->call_env.pure)