File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ static void feed_file(msgpack::unpacker& pac, const char* path)
2020
2121TEST (cases, format)
2222{
23+ #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
24+ #pragma GCC diagnostic push
25+ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
26+ #endif // (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
2327 msgpack::unpacker pac;
2428 msgpack::unpacker pac_compact;
2529
@@ -34,4 +38,7 @@ TEST(cases, format)
3438 }
3539
3640 EXPECT_FALSE ( pac_compact.next (oh) );
41+ #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
42+ #pragma GCC diagnostic pop
43+ #endif // (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
3744}
You can’t perform that action at this time.
0 commit comments