cmake: Improve unreachable-code warnings

Enable CI to report -Wunreachable-code-aggressive warnings in clang
builds which covers all,  -Wunreachable-code, -code-break,
-code-return.
This commit is contained in:
Holger Kaelberer 2023-04-19 10:12:44 +02:00 committed by Martin Hořeňovský
parent aad926baf8
commit 897fe2a01b
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ function(add_warnings_to_targets targets)
"-Wundef"
"-Wuninitialized"
"-Wunneeded-internal-declaration"
"-Wunreachable-code"
"-Wunreachable-code-aggressive"
"-Wunused"
"-Wunused-function"
"-Wunused-parameter"