Skip to content

Commit

Permalink
Merge pull request #11316 from rouault/w_string_conversion
Browse files Browse the repository at this point in the history
cmake/helpers/GdalCompilationFlags.cmake: enable -Wstring-conversion
  • Loading branch information
rouault authored Nov 20, 2024
2 parents 50585ef + 22363b7 commit 5a7aac3
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 5a7aac3

Please sign in to comment.