3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 11:35:42 +00:00
z3/cmake
davedets 0adbcaf0d5
Fix clang warnings about casting away const. (#9933)
This is another PR towards the goal of getting Z3 to compile cleanly
when included via FetchContents into clang-tidy, which uses a pretty
strict set of warnings.

This PR adds
```
"-Wcast-qual"
```
to the set of warnings enabled in the build.  This gives warnings like:
```
/Users/daviddetlefs/z3/src/ast/ast.cpp:2897:38: warning: cast from 'app *const *' to 'expr **' drops const qualifier [-Wcast-qual]
```
I fixed these by inserting consts. In some cases, a "const_cast<T>(...)"
was necessary.
2026-06-23 19:57:46 -06:00
..
modules Bump dotnet example target framework from netcoreapp2.0 to net8.0 (#9531) 2026-05-14 15:17:41 -07:00
check_link_atomic.cmake cmake: skip std::atomic link check for Emscripten and single-threaded builds (#9932) 2026-06-23 14:05:02 -06:00
cmake_uninstall.cmake.in
compiler_lto.cmake
compiler_warnings.cmake Fix clang warnings about casting away const. (#9933) 2026-06-23 19:57:46 -06:00
cxx_compiler_flags_overrides.cmake
git_utils.cmake
msvc_legacy_quirks.cmake
target_arch_detect.cmake
target_arch_detect.cpp
z3_add_component.cmake
z3_add_cxx_flag.cmake
z3_append_linker_flag_list_to_target.cmake
Z3Config.cmake.in