Pygobject build fails due to unused variable in gobject-introspection/tests/gimmarshallingtests.c
Submitted by Suyash Garg
Link to original bug (#773133)
Description
make[2]: Entering directory '/home/ferbncode/.cache/jhbuild/build/pygobject/tests'
CC libgimarshallingtests_la-gimarshallingtests.lo
test -L libregress.so || ln -s .libs/libregress.so libregress.so
test -L testhelper.so || ln -s .libs/testhelper.so testhelper.so
/home/ferbncode/jhbuild/install/share/gobject-introspection-1.0/tests/gimarshallingtests.c: In function ‘gi_marshalling_tests_array_bool_out’:
/home/ferbncode/jhbuild/install/share/gobject-introspection-1.0/tests/gimarshallingtests.c:1594:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
*bools = values;
^
/home/ferbncode/jhbuild/install/share/gobject-introspection-1.0/tests/gimarshallingtests.c: In function ‘gi_marshalling_tests_array_unichar_out’:
/home/ferbncode/jhbuild/install/share/gobject-introspection-1.0/tests/gimarshallingtests.c:1606:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
*chars = values;
^
/home/ferbncode/jhbuild/install/share/gobject-introspection-1.0/tests/gimarshallingtests.c: In function ‘gi_marshalling_tests_array_zero_terminated_return_unichar’:
/home/ferbncode/jhbuild/install/share/gobject-introspection-1.0/tests/gimarshallingtests.c:1725:12: error: unused variable ‘ix’ [-Werror=unused-variable]
unsigned ix;
^~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:553: libgimarshallingtests_la-gimarshallingtests.lo] Error 1
make[2]: Leaving directory '/home/ferbncode/.cache/jhbuild/build/pygobject/tests'
make[1]: *** [Makefile:676: all-recursive] Error 1
make[1]: Leaving directory '/home/ferbncode/.cache/jhbuild/build/pygobject'
make: *** [Makefile:499: all] Error 2
*** Error during phase build of pygobject: ########## Error running make -j 3 *** [59/60]
Edited by Christoph Reiter