Skip to content

Commit

Permalink
Fix #73172 (#75953)
Browse files Browse the repository at this point in the history
Mush probably a gcc v11.4.0 bug
  • Loading branch information
alef authored Aug 27, 2024
1 parent 84695f5 commit 57c3b30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dialogue_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ using dialogue_fun_ptr = std::add_pointer_t<void( npc & )>;
using trial_mod = std::pair<std::string, int>;
struct dbl_or_var;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
template<class T>
struct abstract_var_info {
abstract_var_info( var_type in_type, std::string in_name ): type( in_type ),
Expand All @@ -40,6 +42,7 @@ struct abstract_var_info {
std::string name;
T default_val;
};
#pragma GCC diagnostic pop

using var_info = abstract_var_info<std::string>;
using translation_var_info = abstract_var_info<translation>;
Expand Down

0 comments on commit 57c3b30

Please sign in to comment.