Skip to content

Commit 3af8c4f

Browse files
committed
#2268: ignore invalid maybe-uninitialized warning
1 parent 6b623be commit 3af8c4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vt/collective/reduce/scoping/strong_types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ struct TagPair {
101101
}
102102

103103
TagType first() const { return t1_; }
104+
#pragma GCC diagnostic push // ignore gcc-13 false positive
105+
#ifndef __clang__ // clang does not recognize "-Wmaybe-uninitialized"
106+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
107+
#endif
104108
TagType second() const { return t2_; }
109+
#pragma GCC diagnostic pop
105110

106111
private:
107112
TagType t1_ = no_tag;

0 commit comments

Comments
 (0)