Merge pull request #1318 from davidgyu/dev_ninja_msvc_warn_level

Fixed inconsistent warning levels for MSVC builds
This commit is contained in:
David G Yu 2023-09-11 08:59:41 -07:00 committed by GitHub
commit 2f335a427b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,9 +242,6 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANGCC OR CMAKE_COMPILER_IS_IC
elseif(MSVC) elseif(MSVC)
# Turn on all warnings
list(APPEND OSD_COMPILER_FLAGS /Wall)
list(APPEND OSD_COMPILER_FLAGS list(APPEND OSD_COMPILER_FLAGS
/W3 # Use warning level recommended for production purposes. /W3 # Use warning level recommended for production purposes.
/WX # Treat all compiler warnings as errors. /WX # Treat all compiler warnings as errors.