Skip to content

Commit

Permalink
Added "-Wcast-qual" to warnings.
Browse files Browse the repository at this point in the history
And removed newline.
  • Loading branch information
palerikm committed Dec 19, 2023
1 parent e12f403 commit 185837b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ endif()

if(ENABLE_LTO)
include(LTO)

endif()

set(SOURCES_C
Expand Down
1 change: 1 addition & 0 deletions cmake/Warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function(target_set_warnings)
# -Wsign-conversion # warn on sign conversions
-Wnull-dereference # warn if a null dereference is detected
-Wdouble-promotion # warn if float is implicit promoted to double
-Wcast-qual
)

set(GCC_WARNINGS
Expand Down

0 comments on commit 185837b

Please sign in to comment.