From 9611bdcba959d6d0f55f141b5574d78661d03a63 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Wed, 12 May 2021 15:53:41 +0200 Subject: [PATCH] ci: Add -Werror to force people to remove warnings before pushing --- cmake_modules/gitlab-ci-initial-cache.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake_modules/gitlab-ci-initial-cache.cmake b/cmake_modules/gitlab-ci-initial-cache.cmake index 3f2d2bd71..87cf140a8 100644 --- a/cmake_modules/gitlab-ci-initial-cache.cmake +++ b/cmake_modules/gitlab-ci-initial-cache.cmake @@ -2,6 +2,8 @@ set(BUILD_SHARED_LIBS "ON" CACHE BOOL "") set(CMAKE_INSTALL_PREFIX "$ENV{PWD}/install" CACHE PATH "") set(CMAKE_VERBOSE_MAKEFILE "ON" CACHE BOOL "") +set(CMAKE_C_FLAGS "-Werror") + option(MORSE_ENABLE_WARNING "Enable warning messages" ON) option(MORSE_ENABLE_COVERAGE "Enable flags for coverage test" ON) -- GitLab