build-sys: Do not abort on warnings

This causes some tests to fail when run on Valgrind.
In the code warnings are not supposed to cause crashes.
This change avoid overriding entirely G_DEBUG definition but
just append gc-friendly which make Valgrind more effective.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-04-21 12:53:48 +01:00
parent 06c85b5f04
commit 3db256430b

View File

@ -198,7 +198,7 @@ VALGRIND_TESTS_ENVIRONMENT = \
$(TESTS_ENVIRONMENT) \
env VALGRIND=$(VALGRIND) \
G_SLICE=always-malloc,debug-blocks \
G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
G_DEBUG=$${G_DEBUG:+$$G_DEBUG,}gc-friendly
VALGRIND_LOG_COMPILER = \
$(valgrind_lt) \