CMake: Make -Wmaybe-uninitialized non-fatal

This commit is contained in:
João Valverde 2021-11-01 21:44:10 +00:00
parent 1cf1684504
commit e63857aa4e
1 changed files with 11 additions and 0 deletions

View File

@ -703,6 +703,17 @@ else() # ! MSVC
-Wcomma
-Wshorten-64-to-32
-Wredundant-decls
#
# -Wmaybe-uninitialized is enabled with -Wall. This is a low
# priority warning, sometimes with false positives, that
# can lay dormant and be triggered by increasing the optimization
# level to O3. This is a major inconvenience for developers
# (because the warning is typically unrelated to their code)
# and for end users it is a build breakage (with -Werror).
# For these reasons we disable the fatal error for this warning,
# until these procedural issues can be fixed or at least mitigated.
#
-Wno-error=maybe-uninitialized
)
#