Code

t/cibuild: Ignore missing field initializer warnings for tests.
authorSebastian Harl <sh@tokkee.org>
Sun, 15 Mar 2015 15:18:23 +0000 (11:18 -0400)
committerSebastian Harl <sh@tokkee.org>
Sun, 15 Mar 2015 15:18:23 +0000 (11:18 -0400)
Old versions of clang and gcc complain about { 0 } initializers even though
they are well defined by C99.

t/cibuild.sh

index bb863c6f35d68383c2e765b66953fca5ebb8b608..48c56c7b4e7ee9190166713240170fa8c4f7cd21 100755 (executable)
@@ -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