Skip to content

Commit

Permalink
Enable sign-conversion warnings in gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Jun 11, 2024
1 parent d5bf792 commit e83f2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/compiler_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endfunction()
# Prepares warnings setup for current target
function(compiler_get_warnings_setup VARNAME)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(WARNINGS_SETUP "-Wall -Wextra -pedantic -Wconversion -Wno-long-long")
set(WARNINGS_SETUP "-Wall -Wextra -pedantic -Wconversion -Wsign-conversion -Wno-long-long")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(WARNINGS_SETUP_LIST "-Weverything"
"-Wno-system-headers"
Expand Down

0 comments on commit e83f2ca

Please sign in to comment.