We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 882bd0d commit f5b69b5Copy full SHA for f5b69b5
src/goto-instrument/unwindset.cpp
@@ -171,9 +171,19 @@ void unwindsett::parse_unwindset_one_loop(
171
uw = unsafe_string2unsigned(uw_string);
172
173
if(thread_nr.has_value())
174
+ {
175
+// Work around spurious GCC 12 warning about thread_nr being uninitialised.
176
+#pragma GCC diagnostic push
177
+#ifndef __clang__
178
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
179
+#endif
180
thread_loop_map[std::pair<irep_idt, unsigned>(id, *thread_nr)] = uw;
181
+#pragma GCC diagnostic pop
182
+ }
183
else
184
185
loop_map[id] = uw;
186
187
}
188
189
0 commit comments