From acf184924f4c08da333b528c2271d96d0db202c8 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Tue, 18 Jun 2024 16:55:58 +0200 Subject: [PATCH] build: activate -Wconversion --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fe9adbea..1248d99d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,12 +60,11 @@ if(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR "Release") endif() else() if(UNIX) - add_compile_options(-c -Wall -Wextra -Werror -Wshadow -Wunused -Wstrict-prototypes -pipe -g -O0) + add_compile_options(-c -Wall -Wextra -Werror -Wshadow -Wunused -Wstrict-prototypes -Wconversion -pipe -g -O0) # C99 pedantic doesn't like struct anonymous in unix header if (NOT CMAKE_C_STANDARD STREQUAL "99") add_compile_options(-Wpedantic) endif() - # add_compile_options(-Wconversion) # add_link_options(-fsanitize=address) elseif(MSVC) add_compile_options(/W4 /WX /Od /wd4127)