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 42d5ce2 commit 62358f5Copy full SHA for 62358f5
src/goto-instrument/unwindset.cpp
@@ -172,9 +172,19 @@ void unwindsett::parse_unwindset_one_loop(
172
uw = unsafe_string2unsigned(uw_string);
173
174
if(thread_nr.has_value())
175
+ {
176
+// Work around spurious GCC 12 warning about thread_nr being uninitialised.
177
+#pragma GCC diagnostic push
178
+#ifndef __clang__
179
+# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
180
+#endif
181
thread_loop_map[std::pair<irep_idt, unsigned>(id, *thread_nr)] = uw;
182
+#pragma GCC diagnostic pop
183
+ }
184
else
185
186
loop_map[id] = uw;
187
188
}
189
190
0 commit comments