mirror of
https://github.com/Z3Prover/z3
synced 2026-07-01 04:48:54 +00:00
Undo previous changes; use a much simpler solution.
This commit is contained in:
parent
9c5653a65a
commit
e5b5b2a83f
29 changed files with 44 additions and 93 deletions
|
|
@ -9,10 +9,17 @@ set(GCC_ONLY_WARNINGS "")
|
|||
# Disable C++98 compatibility warnings to prevent excessive warning output
|
||||
# when building with clang-cl or when -Weverything is enabled.
|
||||
# These warnings are not useful for Z3 since it requires C++20.
|
||||
#
|
||||
# The "-Wno-zero-length-array" is for cases where Z3 is fetched by a CMake build
|
||||
# to serve as a component in another system. Z3 has many classes whose last member
|
||||
# is a zero-length array of some type T, indicating a variable-length array of T.
|
||||
# If the including system compiles with "-Wzero-length-array", there will be
|
||||
# many warnings. Overriding this prevents such warnings in the Z3 portion of the
|
||||
# build of the including system.
|
||||
set(CLANG_ONLY_WARNINGS
|
||||
"-Wno-c++98-compat"
|
||||
"-Wno-c++98-compat-pedantic"
|
||||
"-Wzero-length-array"
|
||||
"-Wno-zero-length-array"
|
||||
)
|
||||
set(MSVC_WARNINGS "/W3")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue