mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-12-26 01:17:29 +01:00
Added compiler checking to pragma.
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
#include <msgpack.hpp>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif //defined(__GNUC__)
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#endif //defined(__GNUC__)
|
||||
|
||||
enum enum_test {
|
||||
elem
|
||||
|
||||
Reference in New Issue
Block a user