Pedantic Visual Studio build (/W4 /WX) (#4214)

* Pedantic Visual Studio build (/W4 /WX)

* Pedantic Visual Studio build (/W4 /WX)

* Pedantic Visual Studio build (/W4 /WX)

* Remove /wd4512 from CMakeLists.txt

* Suppress Visual Studio 4512 warning ('class' : assignment operator could not be generated)
This commit is contained in:
chronoxor
2017-03-10 21:27:30 +03:00
committed by Wouter van Oortmerssen
parent e7e4dc755d
commit f5387387de
4 changed files with 34 additions and 6 deletions

View File

@@ -24,6 +24,11 @@
#include "src/compiler/cpp_generator.h"
#include "src/compiler/go_generator.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4512) // C4512: 'class' : assignment operator could not be generated
#endif
namespace flatbuffers {
class FlatBufMethod : public grpc_generator::Method {
@@ -269,3 +274,7 @@ bool GenerateCppGRPC(const Parser &parser,
} // namespace flatbuffers
#if defined(_MSC_VER)
#pragma warning(pop)
#endif