mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 15:12:01 +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
|
#define FLATBUFFERS_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable: 4127) // C4127: conditional expression is constant
|
||||||
|
#endif
|
||||||
|
|
||||||
/// @endcond
|
/// @endcond
|
||||||
|
|
||||||
/// @file
|
/// @file
|
||||||
@@ -1857,4 +1862,8 @@ volatile __attribute__((weak)) const char *flatbuffer_version_string =
|
|||||||
/// @endcond
|
/// @endcond
|
||||||
} // namespace flatbuffers
|
} // namespace flatbuffers
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // FLATBUFFERS_H_
|
#endif // FLATBUFFERS_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user