Added compiler checking to pragma.

This commit is contained in:
Takatoshi Kondo
2019-12-25 14:39:57 +09:00
parent 3b2bb56243
commit 2e2e93ba2e
42 changed files with 168 additions and 3 deletions

View File

@@ -4,12 +4,16 @@
#include <limits>
#include <cmath>
#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__)
// To avoid link error
TEST(MSGPACK_X3_PARSE, dummy)