X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Funittest.cc;h=1663e59a6311a41cdd423e5cdfa818c3bd291f54;hb=b036e172e5839d530bce7c3831a8eaf36d68eca7;hp=c7be63fa49c90a693e7110e8911b3788fea2cfac;hpb=159d85141f157810f5a7d388658fc6923067041e;p=awesomized%2Flibmemcached diff --git a/libtest/unittest.cc b/libtest/unittest.cc index c7be63fa..1663e59a 100644 --- a/libtest/unittest.cc +++ b/libtest/unittest.cc @@ -181,6 +181,11 @@ static test_return_t test_throw_fail_TEST(void *) } #pragma GCC diagnostic ignored "-Wstack-protector" +#ifdef __clang__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wformat-security" +#endif + static test_return_t ASSERT_FALSE__TEST(void *) { try { @@ -199,6 +204,10 @@ static test_return_t ASSERT_FALSE__TEST(void *) return TEST_FAILURE; } +#ifdef __clang__ +# pragma GCC diagnostic pop +#endif + static test_return_t ASSERT_NEQ_FAIL_TEST(void *) { try {