From 9f6c0270ca63aa555ea044c763a333f9dfb7e84d Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 19 Nov 2018 03:08:32 +0000 Subject: .travis.yml: extra CFLAGS to suppress warnings When CFLAGS is passed on travis, warnflags seems not working. Let's add them directly to prevent clang form messing up the logs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9c9d4a7bea..82fa4181fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -309,6 +309,10 @@ matrix: before_script: - "echo JOBS=${JOBS} SETARCH=${SETARCH}" + - |- + if [ ! -z "$CFLAGS" ]; then + CFLAGS="$CFLAGS -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value" + fi - "$SETARCH uname -a" - "$SETARCH uname -r" - "rm -fr .ext autom4te.cache" @@ -335,6 +339,7 @@ before_script: gcc*) the_gcc=(ccache $CC ${GCC_FLAGS[@]} -fno-diagnostics-color) ;; clang*) the_gcc=(ccache $CC ${GCC_FLAGS[@]} -fno-color-diagnostics) ;; esac + - |- $SETARCH ../configure -C --disable-install-doc --prefix=/tmp/ruby-prefix --with-gcc="${the_gcc[*]}" $CONFIG_FLAG "${CONFIG_FLAG_ARRAY[@]}" - "cp -pr config.cache config.status .ext/include ../config_1st" - "$SETARCH make reconfig" -- cgit v1.2.3