Merge pull request #2405 from ab9rf/msvc-config

up MSVC warning level to /W3 /WX
develop
Myk 2022-11-18 13:45:18 -08:00 committed by GitHub
commit 046f799f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

@ -74,6 +74,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(MSVC)
# increase warning level and treat warnings as errors
add_definitions("/WX")
add_definitions("/W3")
# disable C4819 code-page warning
add_definitions("/wd4819")

@ -111,6 +111,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- ``gui.Screen.show()`` now returns ``self`` as a convenience
- ``gui.View.getMousePos()`` now takes an optional ``ViewRect`` parameter in case the caller wants to get the mouse pos relative to a rect that is not the frame_body (such as the frame_rect)
## Internals
- MSVC warning level upped to /W3, and /WX added to make warnings cause compilations to fail.
# 0.47.05-r7
## New Plugins