mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
Add flag "-Werror=return-type"
This commit is contained in:
parent
59c3234fb8
commit
f12a7d62ab
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ set(MSVC_WARNINGS "/W3")
|
|||
set(GCC_AND_CLANG_WARNINGS_AS_ERRORS
|
||||
# https://clang.llvm.org/docs/DiagnosticsReference.html#wodr
|
||||
"-Werror=odr"
|
||||
# https://clang.llvm.org/docs/DiagnosticsReference.html#wreturn-type
|
||||
"-Werror=return-type"
|
||||
)
|
||||
set(GCC_WARNINGS_AS_ERRORS
|
||||
""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue