build: workaround unknown warning warning in clang

This commit is contained in:
Danny Robson 2016-10-11 21:44:25 +11:00
parent 2015e71f64
commit be6ca2e1d2

View File

@ -387,8 +387,11 @@ json::tree::node::as_chars (void) const&
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
namespace json { namespace tree { namespace json { namespace tree {
#if defined(__clang__)
#elif defined(__GNUC__)
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuseless-cast" #pragma GCC diagnostic ignored "-Wuseless-cast"
#endif
template <> template <>
bool node::as (void) const bool node::as (void) const
{ {
@ -447,7 +450,10 @@ namespace json { namespace tree {
{ {
return static_cast<int64_t> (as_sint ()); return static_cast<int64_t> (as_sint ());
} }
#if defined(__clang__)
#elif defined(__GNUC__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif
} } } }