From 757fda0e368537fb7e0e5383646137b93b23bdbb Mon Sep 17 00:00:00 2001 From: Hleb Valoshka <375gnu@gmail.com> Date: Thu, 4 Mar 2021 00:07:43 +0200 Subject: [PATCH] Disable more MSVC warnings --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4525c7ba..d90c3c57c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,11 +105,13 @@ if(MSVC) # C4244, C4267, C4503: implicit type conversion to a smaller type # C4786: long names in templates # C4800: forcing value to bool + # C4455: reserved literals (no undescore at the beginning) + # C5030: not recognized attribute # Additional options # bigobj: generate more object sections than allowed by default # Promoted to errors # C4316: object allocated on the heap may not be aligned 16 - add_compile_options("/wd4244" "/wd4267" "/wd4503" "/wd4800" "/bigobj" "/we4316") + add_compile_options("/wd4244" "/wd4267" "/wd4503" "/wd4800" "/wd4455" "/wd5030" "/bigobj" "/we4316") endif() if(NOT WIN32)