[前][次][番号順一覧][スレッド一覧]

ruby-changes:53580

From: shyouhei <ko1@a...>
Date: Mon, 19 Nov 2018 12:08:35 +0900 (JST)
Subject: [ruby-changes:53580] shyouhei:r65796 (trunk): .travis.yml: extra CFLAGS to suppress warnings

shyouhei	2018-11-19 12:08:32 +0900 (Mon, 19 Nov 2018)

  New Revision: 65796

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65796

  Log:
    .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.

  Modified files:
    trunk/.travis.yml
Index: .travis.yml
===================================================================
--- .travis.yml	(revision 65795)
+++ .travis.yml	(revision 65796)
@@ -309,6 +309,10 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L309
 
 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: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L339
     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"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]