Commit 07390241 authored by Emanuele Aina's avatar Emanuele Aina

ade-tests-custom: Build with --disable-Werror

Cross building `helloworld-simple-agent` with GCC 8 from v2019dev0 against GLib
2.50.2 as shipped in 18.06 leads to failure due to `-Wextra` turning on the
new `-Wcast-function-type` warning and `AX_COMPILER_FLAGS` making it fatal by
turning `-Werror` on.

The fix for GLib landed in 2.56.0:
https://gitlab.gnome.org/GNOME/glib/commit/c1f5e52844c

In order to still build against the old 18.x sysroots, pass `--disable-Werror`
to the configure command.

See https://gitlab.gnome.org/GNOME/gnome-terminal/issues/96#note_480034
instead for the best way to silence the warning using a cast to `GCallback`
should the issue be in your own code.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent f1bc111e
......@@ -69,7 +69,7 @@ checkCmd "ade sysroot list"
checkCmd "cd sample-app"
checkCmd "ade configure --debug --sysroot $DISTRIBUTION-$OLDRELEASE-$ARCH"
checkCmd "ade configure --debug --sysroot $DISTRIBUTION-$OLDRELEASE-$ARCH -- --disable-Werror"
checkCmd "ade export"
checkCmd "ls -l *.bundle"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment