Skip to content

Commit

Permalink
cmake/helpers/GdalCompilationFlags.cmake: enable -Wstring-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 20, 2024
1 parent 1344d8d commit 22363b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/helpers/GdalCompilationFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ else ()
detect_and_set_cxx_warning_flag(non-virtual-dtor)
detect_and_set_cxx_warning_flag(overloaded-virtual)
detect_and_set_cxx_warning_flag(suggest-override)
# clang specific only. Avoids that foo("bar") goes to foo(bool) instead of foo(const std::string&)
detect_and_set_cxx_warning_flag(string-conversion)

check_cxx_compiler_flag(-fno-operator-names HAVE_FLAG_NO_OPERATOR_NAMES)
if (HAVE_FLAG_NO_OPERATOR_NAMES)
Expand Down

0 comments on commit 22363b7

Please sign in to comment.