meson: enable Wmisleading-indentation

Clang enables it by default, but GCC does not. Enable it explicitly to
have some consistency between the supported compilers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Eric Engestrom <eric@igalia.com>
Acked-by: Dylan Baker <dylan.c.baker@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19439>
This commit is contained in:
Lucas Stach 2022-11-01 14:42:12 +01:00 committed by Marge Bot
parent 5a6f95db13
commit 1d86188dc0

View File

@ -1145,6 +1145,7 @@ else
'-Werror=incompatible-pointer-types',
'-Werror=int-conversion',
'-Wimplicit-fallthrough',
'-Wmisleading-indentation',
'-Wno-missing-field-initializers',
'-Wno-format-truncation',
'-fno-math-errno',
@ -1158,6 +1159,7 @@ else
_trial_cpp = [
'-Werror=return-type',
'-Werror=empty-body',
'-Wmisleading-indentation',
'-Wno-non-virtual-dtor',
'-Wno-missing-field-initializers',
'-Wno-format-truncation',