From 1d86188dc0a93be2a8054805cd7d4909b654842b Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 1 Nov 2022 14:42:12 +0100 Subject: [PATCH] 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 Acked-by: Eric Engestrom Acked-by: Dylan Baker Part-of: --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 59db762fba3..6f7cac4c11c 100644 --- a/meson.build +++ b/meson.build @@ -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',