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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user