diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e6f5c835..c03037973 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/docs/changelog.txt b/docs/changelog.txt index 8413276f3..8c5e4c98a 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -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