From d5612756b98afa43443a210722691c2e07ddfd5c Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 16 Feb 2022 20:03:13 +0100 Subject: refactor: add compiler warnings --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b23ae1..e7b43c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,8 +21,15 @@ target_compile_options( ${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic -Wshadow - -Wold-style-cast -Wcast-align -Wunused - -Wconversion -pedantic -fsanitize=address + -Wold-style-cast -Wcast-align -Wno-unused + -Wconversion -Wcast-qual -Wctor-dtor-privacy + -Wdisabled-optimization -Wformat=2 -Winit-self + -Wlogical-op -Wmissing-declarations + -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual + -Wredundant-decls -Wsign-conversion -Wsign-promo + -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default + -Wundef -Werror + -pedantic -fsanitize=address ) target_include_directories(${PROJECT_NAME} PRIVATE src) -- cgit v1.2.3-18-g5258