From de6a7c6fc87bf16ba2cafb82d464ab853e9caa5d Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Fri, 19 Jan 2024 10:33:50 +0100 Subject: [PATCH] build: add commented debug options --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69ac6dc24..2c32d9bb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,8 @@ endif() if(CMAKE_BUILD_TYPE MATCHES "DEBUG") if(UNIX) add_compile_options(-c -Wall -Wextra -Werror -Wshadow -Wpedantic -Wunused -Wstrict-prototypes -pipe -g -O0) + # add_compile_options(-Wconversion) + # add_link_options(-fsanitize=address) elseif(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /std:c11 /experimental:c11atomics") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest /experimental:c11atomics")