aboutsummaryrefslogtreecommitdiff
path: root/travis/linux_gcc
diff options
context:
space:
mode:
authorAaron Puchert <aaronpuchert@alice-dsl.net>2018-03-24 18:17:35 +0100
committerAaron Puchert <aaronpuchert@alice-dsl.net>2018-03-24 19:03:28 +0100
commite2eaded47068c7b87bc112609eb77afab18665aa (patch)
tree3b19ba84e8bea377de079dc1f40ab3215981f922 /travis/linux_gcc
parent19aef5185f5b39f6c90956da146d26eba142d2a0 (diff)
downloadPROJ-e2eaded47068c7b87bc112609eb77afab18665aa.tar.gz
PROJ-e2eaded47068c7b87bc112609eb77afab18665aa.zip
Don't set -std=c89 in CMakeLists.txt
This allows us to take advantage of newer features when they are available. However, builds on Travis still use -std=c89 to ensure C89 compatibility. Locally this can be achieved with either * cmake -DCMAKE_C_STANDARD=90 .. * cmake -DCMAKE_C_FLAGS='-std=c89' .. * C_FLAGS='-std=c89' cmake .. We also reorder the warning flags: they are all part of the standard build now, but -Werror is only applied on Travis. Fixes #892.
Diffstat (limited to 'travis/linux_gcc')
-rwxr-xr-xtravis/linux_gcc/install.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/travis/linux_gcc/install.sh b/travis/linux_gcc/install.sh
index 6910322c..77e9a2e3 100755
--- a/travis/linux_gcc/install.sh
+++ b/travis/linux_gcc/install.sh
@@ -4,5 +4,4 @@ set -e
export CCACHE_CPP2=yes
-# -Wfloat-conversion not available for gcc 4.8
-CC="ccache gcc" CFLAGS="-std=c89 -g -Wall -Wextra -Werror -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wshadow -O2" ./travis/install.sh
+CC="ccache gcc" CFLAGS="-std=c89 -Werror" ./travis/install.sh