Skip to content

Commit

Permalink
build: activate -Wconversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jun 18, 2024
1 parent 5048412 commit acf1849
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acf1849

Please sign in to comment.