From 1166a88e3b3c2436c9f5b44e19935da30a88e766 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Thu, 1 Oct 2020 16:20:39 +0200
Subject: [PATCH] update docker container

---
 .gitlab-ci.yml | 2 --
 CMakeLists.txt | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ad307b19a..261d0b987 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,8 +55,6 @@ check-copyrights:
 ##########################################################
 check-clang-format:
   image: corsika/devel:u-18.04
-  before_script:
-  - apt-get update && apt-get install -y -qq clang-format
   stage: quality
   tags:
     - corsika
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97e561cf7..82a2b8115 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,6 +93,9 @@ endif ()
 if (CMAKE_BUILD_TYPE STREQUAL Coverage)
   find_package (Perl REQUIRED)
 
+  # compile coverage under -O2 to remove unused functions
+  add_compile_options ("-O2")
+  
   set (GCOV gcov CACHE STRING "gcov executable" FORCE)
   set (LCOV_BIN_DIR "${PROJECT_SOURCE_DIR}/ThirdParty/lcov/bin")
   # collect coverage data
-- 
GitLab