Disable a MSVC warning seen in protobuf generated code
This warning is not very useful and is disabled by default when not using /Wall
This commit is contained in:
parent
c9b1134417
commit
2b1f56ebc8
|
@ -272,4 +272,6 @@ if( MSVC )
|
||||||
string( APPEND WARN_FLAGS_CXX " /wd4668" )
|
string( APPEND WARN_FLAGS_CXX " /wd4668" )
|
||||||
# disable "definition of implicit copy constructor for 'X' is deprecated because it has a user-provided destructor"
|
# disable "definition of implicit copy constructor for 'X' is deprecated because it has a user-provided destructor"
|
||||||
string( APPEND WARN_FLAGS_CXX " /wd5267" )
|
string( APPEND WARN_FLAGS_CXX " /wd5267" )
|
||||||
|
# disable "reinterpret_cast used between related classes"
|
||||||
|
string( APPEND WARN_FLAGS_CXX " /wd4946" )
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue