diff --git a/src/vt/collective/reduce/scoping/strong_types.h b/src/vt/collective/reduce/scoping/strong_types.h index 0953f1683a..83fecc5f68 100644 --- a/src/vt/collective/reduce/scoping/strong_types.h +++ b/src/vt/collective/reduce/scoping/strong_types.h @@ -101,7 +101,13 @@ struct TagPair { } TagType first() const { return t1_; } - TagType second() const { return t2_; } + TagType second() const { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + // ignore gcc-13 false positive + return t2_; +#pragma GCC diagnostic pop + } private: TagType t1_ = no_tag;