VS2015 warning "conditional expression is constant" (#4210)

* VS2015 warning "conditional expression is constant"

* VS2015 warning "conditional expression is constant"
This commit is contained in:
chronoxor
2017-03-09 00:34:38 +03:00
committed by Wouter van Oortmerssen
parent bb22fb5756
commit b8224809ad

View File

@@ -107,6 +107,11 @@
#define FLATBUFFERS_CONSTEXPR
#endif
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4127) // C4127: conditional expression is constant
#endif
/// @endcond
/// @file
@@ -1857,4 +1862,8 @@ volatile __attribute__((weak)) const char *flatbuffer_version_string =
/// @endcond
} // namespace flatbuffers
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
#endif // FLATBUFFERS_H_