From f11a5f519d0f9ba8c8a0a116fc046b5a1c3e804f Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 15 Mar 2015 11:18:23 -0400 Subject: [PATCH] t/cibuild: Ignore missing field initializer warnings for tests. Old versions of clang and gcc complain about { 0 } initializers even though they are well defined by C99. --- t/cibuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/cibuild.sh b/t/cibuild.sh index bb863c6..48c56c7 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -17,7 +17,10 @@ case "$CICFLAGS" in # skip regular tests ;; *) - make -j10 test TESTS_ENVIRONMENT="./testwrapper.sh" + # old versions of gcc and clang complain about { 0 } initializers + make -j10 test \ + TESTS_ENVIRONMENT="./testwrapper.sh" \ + CFLAGS="-O0 $CICFLAGS -Wno-missing-field-initializers" ;; esac -- 2.30.2