Skip to content

Commit

Permalink
-pedantic-errors should not be enabled if warnings are not treated as…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
traversaro authored Sep 24, 2024
1 parent 8653751 commit 01eae83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/TargetCompileWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function(target_compile_warnings)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
if(${_warnings_as_errors})
list(APPEND WARNINGS_COMPILE_OPTIONS "-Werror")
list(APPEND WARNINGS_COMPILE_OPTIONS "-pedantic-errors")
endif()
list(APPEND WARNINGS_COMPILE_OPTIONS "-pedantic-errors")
list(APPEND WARNINGS_COMPILE_OPTIONS "-Wall")
list(APPEND WARNINGS_COMPILE_OPTIONS "-Wextra")
list(APPEND WARNINGS_COMPILE_OPTIONS "-Wconversion")
Expand Down

0 comments on commit 01eae83

Please sign in to comment.