From 86cfb3821150d24cd60e5501720779696379643a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 9 Feb 2021 13:01:13 +0000 Subject: MSVC warnings --- SetFlags.cmake | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'SetFlags.cmake') diff --git a/SetFlags.cmake b/SetFlags.cmake index 2900418ea..4ef8ecd2a 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -104,7 +104,16 @@ endfunction() function(set_exe_flags TARGET) if (MSVC) - # TODO: MSVC level 4, warnings as errors + # TODO: Warnings as errors + target_compile_options( + ${TARGET} PRIVATE + + # Warnings level 4: + /W4 + + # Excessive amount of logspam (Unreferenced formal parameter), disable for now: + /wd4100 + ) return () endif() -- cgit v1.2.3