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.
2 parents 79186c4 + b7054ba commit 88e7bfeCopy full SHA for 88e7bfe
src/util/lower_byte_operators.cpp
@@ -1111,8 +1111,14 @@ static exprt lower_byte_extract_array_vector(
1111
if(num_elements.has_value())
1112
{
1113
exprt::operandst operands;
1114
+ // Work around spurious GCC warning about num_elements being uninitialised.
1115
+#pragma GCC diagnostic push
1116
+#ifndef __clang__
1117
+# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
1118
+#endif
1119
operands.reserve(*num_elements);
1120
for(std::size_t i = 0; i < *num_elements; ++i)
1121
+#pragma GCC diagnostic pop
1122
1123
plus_exprt new_offset(
1124
unpacked.offset(),
0 commit comments