From: Sebastian Harl Date: Sun, 15 Mar 2015 15:18:23 +0000 (-0400) Subject: t/cibuild: Ignore missing field initializer warnings for tests. X-Git-Tag: sysdb-0.8.0~117 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f11a5f519d0f9ba8c8a0a116fc046b5a1c3e804f;p=sysdb.git 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. --- 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