mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-21 21:26:35 +02:00
parent
7214b4c73f
commit
ffcaaeb482
@ -20,6 +20,10 @@ static void feed_file(msgpack::unpacker& pac, const char* path)
|
||||
|
||||
TEST(cases, format)
|
||||
{
|
||||
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif // (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
|
||||
msgpack::unpacker pac;
|
||||
msgpack::unpacker pac_compact;
|
||||
|
||||
@ -34,4 +38,7 @@ TEST(cases, format)
|
||||
}
|
||||
|
||||
EXPECT_FALSE( pac_compact.next(oh) );
|
||||
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user