File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -268,12 +268,26 @@ class BoundsCheckTest : public testing::Test
268
268
{
269
269
CGT (booleanType) out;
270
270
EXPECT_TRUE (CGT (car_available)(&m_carDecoder, &out));
271
+ #if defined(__GNUG__) && !defined(__clang__)
272
+ #pragma GCC diagnostic push
273
+ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
274
+ #endif
271
275
EXPECT_EQ (out, AVAILABLE);
276
+ #if defined(__GNUG__) && !defined(__clang__)
277
+ #pragma GCC diagnostic pop
278
+ #endif
272
279
}
273
280
{
274
281
CGT (model) out;
275
282
EXPECT_TRUE (CGT (car_code)(&m_carDecoder, &out));
283
+ #if defined(__GNUG__) && !defined(__clang__)
284
+ #pragma GCC diagnostic push
285
+ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
286
+ #endif
276
287
EXPECT_EQ (out, CODE);
288
+ #if defined(__GNUG__) && !defined(__clang__)
289
+ #pragma GCC diagnostic pop
290
+ #endif
277
291
}
278
292
279
293
EXPECT_EQ (CGT (car_someNumbers_length)(), 5u );
You can’t perform that action at this time.
0 commit comments