Skip to content

tests: silence -Wunused-parameter

argc and argv are unused and could trigger the following warning:

subprojects/wayland-protocols/tests/test-build-pedantic-unstable_input_method_input_method_unstable_v1_xml.c: In function ‘main’:
subprojects/wayland-protocols/tests/test-build-pedantic-unstable_input_method_input_method_unstable_v1_xml.c:7:10: error: unused parameter ‘argc’ [-Werror=unused-parameter]
    7 | main(int argc, char **argv)
      |      ~~~~^~~~
subprojects/wayland-protocols/tests/test-build-pedantic-unstable_input_method_input_method_unstable_v1_xml.c:7:23: error: unused parameter ‘argv’ [-Werror=unused-parameter]
    7 | main(int argc, char **argv)
      |                ~~~~~~~^~~~
cc1: all warnings being treated as errors

Signed-off-by: Simon Ser contact@emersion.fr

Merge request reports

Loading