Skip to content

Commit

Permalink
t/cibuild: Ignore missing field initializer warnings for tests.
Browse files Browse the repository at this point in the history
Old versions of clang and gcc complain about { 0 } initializers even though
they are well defined by C99.
  • Loading branch information
tokkee committed Mar 15, 2015
1 parent da760b7 commit f11a5f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f11a5f5

Please sign in to comment.