Skip to content

Commit ca4a425

Browse files
authored
Merge pull request #602 from redboltz/fix_600
Fixed #600.
2 parents 6b99a0c + ffcaaeb commit ca4a425

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/cases.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ static void feed_file(msgpack::unpacker& pac, const char* path)
2020

2121
TEST(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
}

0 commit comments

Comments
 (0)