Don't build tests with -Werror

-Werror should never be enabled unconditionally since warnings are specific to the toolchain used

Newer or different toolchain may introduce not-yet-seen warnings, breaking the build for people who just want to build wayland-rotocols

See https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/241

Signed-off-by: Nicolas Fella <nicolas.fella@kde.org>
This commit is contained in:
Nicolas Fella 2025-02-05 21:07:26 +01:00
parent c7b582cb71
commit 219054c0ef

View file

@ -108,7 +108,7 @@ foreach protocol_file : protocol_files
'-std=c99',
'-pedantic',
'-Wall',
'-Werror' ],
],
install: false,
)
test(test_name, pedantic_test_executable)
@ -134,7 +134,6 @@ foreach protocol_file : protocol_files
dependencies: libwayland,
cpp_args: [
'-Wall',
'-Werror',
],
install: false,
)