Browse Source

Travis: Fix compiler versions to gcc-4.6 and clang-3.4

It seems Travis CI updated the build image some days ago.
The new image uses a newer compiler, and this causes spurious and
idiotic warnings, that cannot be deactivated using a pragma

e.g.,
  "expansion of date or time macro is not reproducible",
  -Wdate-time when using __DATE__

or

 "call to ‘__fread_chk_warn’ declared with attribute warning:
  fread called with bigger size * nmemb than length of destination buffer,
  return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);"

or

  changed "'return' will never be executed" from -Wunreachable-code
  to -Wunreachable-code-return

None of them can be ignored in pragmas, so one can either disable -Werror
or just don't use this compiler version.

Since we are close to a 1.10 release, now it's not the time to deal
with hypochondriac compiler warnings.

On the long term, the compiler version should be fixed, and some
selected versions should compile warning free (-Werror), while others
should only compile error free.
bel2125 7 years ago
parent
commit
536a6fb38e
1 changed files with 6 additions and 2 deletions
  1. 6 2
      .travis.yml

+ 6 - 2
.travis.yml

@@ -16,6 +16,8 @@ addons:
       - cmake
       - openssl
       - libssl-dev
+      - gcc-4.6
+      - clang-3.4
     sources:
       - kubuntu-backports
       - ubuntu-toolchain-r-test
@@ -42,8 +44,10 @@ before_script:
   # Check some settings of the build server
   - uname -a
   - pwd
-  - apt-cache search gcc | grep "GNU C compiler"
-  - apt-cache search clang | grep compiler
+  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
+      apt-cache search gcc | grep "GNU C compiler";
+      apt-cache search clang | grep compiler;
+    fi
   - if [[ "${BUILD_TYPE}" == "OSX_OPENSSL_1_1" ]]; then brew install openssl@1.1 ;fi
   # Generate the build scripts with CMake
   - mkdir output