Commit 6603e5d3 authored by Tomas Härdin's avatar Tomas Härdin

Use -Werror on all platforms except buster

This should be a slightly better fix than 088528a5
parent 17fc71e0
Pipeline #1119 passed with stages
in 50 minutes and 42 seconds
......@@ -47,6 +47,8 @@ RUN pip3 install -r Buildstuff/requirements.txt
USER gitlab-ci
WORKDIR /home/gitlab-ci/umit
RUN export PATH=/usr/lib/ccache:$PATH
# Error out on warnings on all platforms except buster
RUN export WERROR=-Werror
# docker doesn't copy empty directories for some reason
RUN mkdir 3rdparty/FMILibrary-2.0.1/ThirdParty/Expat/expat-2.1.0/src
......
......@@ -42,6 +42,8 @@ RUN pip3 install -r Buildstuff/requirements.txt
USER gitlab-ci
WORKDIR /home/gitlab-ci/umit
RUN export PATH=/usr/lib/ccache:$PATH
# Error out on warnings on all platforms except buster
RUN export WERROR=-Werror
# docker doesn't copy empty directories for some reason
RUN mkdir 3rdparty/FMILibrary-2.0.1/ThirdParty/Expat/expat-2.1.0/src
......
......@@ -54,6 +54,8 @@ RUN pip3 install -r Buildstuff/requirements.txt
USER gitlab-ci
WORKDIR /home/gitlab-ci/umit
RUN export PATH=/usr/lib/ccache:$PATH
# Error out on warnings on all platforms except buster
RUN export WERROR=-Werror
# docker doesn't copy empty directories for some reason
RUN mkdir 3rdparty/FMILibrary-2.0.1/ThirdParty/Expat/expat-2.1.0/src
......
......@@ -66,6 +66,8 @@ RUN pip3 install -r Buildstuff/requirements.txt
USER gitlab-ci
WORKDIR /home/gitlab-ci/umit
RUN export PATH=/usr/lib/ccache:$PATH
# Error out on warnings on all platforms except buster
RUN export WERROR=-Werror
# docker doesn't copy empty directories for some reason
RUN mkdir 3rdparty/FMILibrary-2.0.1/ThirdParty/Expat/expat-2.1.0/src
......
......@@ -41,6 +41,8 @@ RUN pip3 install -r Buildstuff/requirements.txt
USER gitlab-ci
WORKDIR /home/gitlab-ci/umit
RUN export PATH=/usr/lib/ccache:$PATH
# Error out on warnings on all platforms except buster
RUN export WERROR=-Werror
# docker doesn't copy empty directories for some reason
RUN mkdir 3rdparty/FMILibrary-2.0.1/ThirdParty/Expat/expat-2.1.0/src
......
......@@ -41,6 +41,8 @@ RUN pip3 install -r Buildstuff/requirements.txt
USER gitlab-ci
WORKDIR /home/gitlab-ci/umit
RUN export PATH=/usr/lib/ccache:$PATH
# Error out on warnings on all platforms except buster
RUN export WERROR=-Werror
# docker doesn't copy empty directories for some reason
RUN mkdir 3rdparty/FMILibrary-2.0.1/ThirdParty/Expat/expat-2.1.0/src
......
......@@ -215,7 +215,7 @@ endif ()
if (NOT WIN32)
# cl.exe has a different set of flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Werror -Wno-unused-variable -Wno-unused-function -Wextra -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall ${WERROR} -Wno-unused-variable -Wno-unused-function -Wextra -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -DDEBUG")
FIND_PACKAGE(MPI REQUIRED)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment