From 974cfc0f4f60a0195266b75123e31bffa410b347 Mon Sep 17 00:00:00 2001 From: alef Date: Sun, 25 Aug 2024 21:26:55 +0200 Subject: [PATCH] Fix #73172 Mush probably a gcc v11.4.0 bug --- src/dialogue_helpers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dialogue_helpers.h b/src/dialogue_helpers.h index f9ce81fa70fbd..24ff4527fc71a 100644 --- a/src/dialogue_helpers.h +++ b/src/dialogue_helpers.h @@ -29,6 +29,8 @@ using dialogue_fun_ptr = std::add_pointer_t; using trial_mod = std::pair; struct dbl_or_var; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" template struct abstract_var_info { abstract_var_info( var_type in_type, std::string in_name ): type( in_type ), @@ -40,6 +42,7 @@ struct abstract_var_info { std::string name; T default_val; }; +#pragma GCC diagnostic pop using var_info = abstract_var_info; using translation_var_info = abstract_var_info;