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:
Jon Evans 2024-04-03 18:10:21 -04:00
parent c9b1134417
commit 2b1f56ebc8
1 changed files with 2 additions and 0 deletions

View File

@ -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()