Skip to content

ci: Add Werror=misleading-indentation to debian-clang

On top of !25315 (merged)

Due to some issues with GCC and this warning in very long files, we disabled it when compiling NIR. Unfortunately by design Meson doesn't allow us to set flags per source file.

The warning is still enabled in clang. but it is less commonly used during development. To avoid missing catching those warnings, add -Werror=misleading-indentation to the GitLab CI debian-clang build.

See !25315 (merged) for more context. This patch is a transcription of what Eric Engestrom suggested, except only targetting C flags (since we only disable them for C in NIR build).

Edited by Caio Oliveira

Merge request reports