From 55b0ba83080e1c1ad121e6df64ef1989c30a9de3 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Thu, 13 Sep 2018 10:38:19 +0200 Subject: [PATCH] CI: treat gcc warning as errors For now exclude unused-result warnings in order not to affect current builds. Signed-off-by: Yegor Yefremov --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 12f64b1..99bcbe6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,13 +12,13 @@ matrix: os: linux dist: trusty compiler: gcc - script: ./autogen.sh && ./configure && make distcheck + script: ./autogen.sh && ./configure CFLAGS="-Werror -Wno-unused-result" && make distcheck - env: test="x64 5.0 (autotools)" os: linux dist: trusty compiler: clang - script: ./autogen.sh && ./configure && make distcheck + script: ./autogen.sh && ./configure CFLAGS="-Werror -Wno-unused-result" && make distcheck - env: test="x64 4.8.4 (CMake gcc)" os: linux