meson: enable Wmisleading-indentation
authorLucas Stach <l.stach@pengutronix.de>
Tue, 1 Nov 2022 13:42:12 +0000 (14:42 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Nov 2022 01:56:28 +0000 (01:56 +0000)
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>

meson.build

index 59db762..6f7cac4 100644 (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',