From 26afd314b77ac630b345f4eb3bd24dbf6829b282 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Mon, 8 Feb 2021 21:44:10 +0000 Subject: [PATCH] Slightly less annoying warning level Disables GCC and VS warnings for unused parameters and VS warning for shadowing class members. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d4602d..2c4ae04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,9 @@ set(PROJECT_DISTRIBS LICENSE README.md) # Build configuration; approach this with caution! if(MSVC) - add_compile_options("/W4" "/wd4244" "/wd4324") + add_compile_options("/W4" "/wd4244" "/wd4324" "/wd4458" "/wd4100") else() - add_compile_options("-Wall" "-Wextra" "-Wdouble-promotion") + add_compile_options("-Wall" "-Wextra" "-Wdouble-promotion" "-Wno-unused-parameter") endif() if(NOT EXISTS ${32BLIT_PATH}/32blit.cmake) message(FATAL_ERROR "Define location of 32Blit API with -D32BLIT_PATH=")