mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
VS2015 warning "conditional expression is constant" (#4210)
* VS2015 warning "conditional expression is constant" * VS2015 warning "conditional expression is constant"
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
bb22fb5756
commit
b8224809ad
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user