Move 2 warn flags to same place as the rest
This commit is contained in:
@@ -526,10 +526,6 @@ if( MSVC )
|
||||
add_compile_definitions( NOMINMAX )
|
||||
# source and execution charset are UTF-8
|
||||
string( APPEND CMAKE_CXX_FLAGS " /utf-8" )
|
||||
# C4290: throw() is interpreted as declspec(nothrow)
|
||||
string( APPEND CMAKE_CXX_FLAGS " /wd4290" )
|
||||
# C4800: non-bool is explicitly cast to bool, forcing value of 0 or 1
|
||||
string( APPEND CMAKE_CXX_FLAGS " /wd4800" )
|
||||
|
||||
# cmake 3.25 or higher requried for MSVC, should be fine
|
||||
if( USE_CCACHE AND CCACHE_FOUND )
|
||||
|
||||
@@ -274,4 +274,8 @@ if( MSVC )
|
||||
string( APPEND WARN_FLAGS_CXX " /wd5267" )
|
||||
# disable "reinterpret_cast used between related classes"
|
||||
string( APPEND WARN_FLAGS_CXX " /wd4946" )
|
||||
# disable throw() is interpreted as declspec(nothrow)
|
||||
string( APPEND WARN_FLAGS_CXX " /wd4290" )
|
||||
# disable non-bool is explicitly cast to bool, forcing value of 0 or 1
|
||||
string( APPEND WARN_FLAGS_CXX " /wd4800" )
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user