summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile12
-rw-r--r--ctor.cc1
2 files changed, 6 insertions, 7 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index a558359..e518b6c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,11 +11,11 @@ pipeline {
echo 'Cleaning workspace ...'
sh 'git clean -d -x -f'
echo 'Building (clang) ...'
- sh 'CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./bootstrap.sh'
+ sh 'CXXFLAGS=-Werror CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./bootstrap.sh'
echo 'Testing (clang) ...'
sh './ctor check'
echo 'Testing suite (clang) ...'
- sh '(cd test/suite; CTORDIR=../../build CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./test.sh)'
+ sh '(cd test/suite; CTORDIR=../../build CXXFLAGS=-Werror CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./test.sh)'
}
post {
always {
@@ -32,11 +32,11 @@ pipeline {
echo 'Cleaning workspace ...'
sh 'git clean -d -x -f'
echo 'Building (gcc) ...'
- sh 'CXX=g++ ./bootstrap.sh'
+ sh 'CXXFLAGS=-Werror CXX=g++ ./bootstrap.sh'
echo 'Testing (gcc) ...'
sh './ctor check'
echo 'Testing suite (gcc) ...'
- sh '(cd test/suite; CTORDIR=../../build CXX=g++ ./test.sh)'
+ sh '(cd test/suite; CTORDIR=../../build CXXFLAGS=-Werror CXX=g++ ./test.sh)'
}
post {
always {
@@ -53,11 +53,11 @@ pipeline {
echo 'Cleaning workspace ...'
sh 'git clean -d -x -f'
echo 'Building (clang) ...'
- sh 'CXX=clang++ ./bootstrap.sh'
+ sh 'CXXFLAGS=-Werror CXX=clang++ ./bootstrap.sh'
echo 'Testing (clang) ...'
sh './ctor check'
echo 'Testing suite (clang) ...'
- sh '(cd test/suite; CTORDIR=../../build CXX=clang++ ./test.sh)'
+ sh '(cd test/suite; CTORDIR=../../build CXXFLAGS=-Werror CXX=clang++ ./test.sh)'
}
post {
always {
diff --git a/ctor.cc b/ctor.cc
index 67b1465..f3b8588 100644
--- a/ctor.cc
+++ b/ctor.cc
@@ -38,7 +38,6 @@ ctor::build_configurations ctorConfigs(const ctor::settings& settings)
"-O3",
"-g",
"-Wall",
- "-Werror",
"-Wextra",
"-Wshadow",
"-Wconversion",