From 4252d8f4aec1677d131ededeabd3d0d75f63bec0 Mon Sep 17 00:00:00 2001 From: Merry Date: Mon, 9 Oct 2023 22:08:29 +0100 Subject: [PATCH] oaknut: CMakeLists: Warnings are errors on MSVC --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 783214b..e1e149a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,7 @@ if (MASTER_PROJECT) /external:W0 /external:anglebrackets /W4 + /WX /w44263 # Non-virtual member function hides base class virtual function /w44265 # Class has virtual functions, but destructor is not virtual /w44456 # Declaration of 'var' hides previous local declaration @@ -84,8 +85,6 @@ if (MASTER_PROJECT) /Zc:inline # Omits inline functions from object-file output. /Zc:throwingNew # Assumes new (without std::nothrow) never returns null. /volatile:iso # Use strict standard-abiding volatile semantics - /bigobj # Increase number of sections in .obj files - /DNOMINMAX ) else() target_compile_options(oaknut-tests PRIVATE -Wall -Wextra -Wcast-qual -pedantic -pedantic-errors -Wfatal-errors -Wno-missing-braces)