From 281779122ac39107b2603c0b547a546b8bdeb4c6 Mon Sep 17 00:00:00 2001
From: "Kilic, Deniz" <d.kilic@fz-juelich.de>
Date: Thu, 28 Jan 2021 15:55:37 +0100
Subject: [PATCH] Add pedantic and permissive- compiler flags

---
 CMakeLists.txt  | 2 ++
 src/control.cpp | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e02b23661..a3c0f535f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,8 +74,10 @@ list(APPEND COMMON_COMPILE_OPTIONS
     $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-Wall>
     $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-Wextra>
     $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-fdiagnostics-color=always>
+    $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-pedantic>
     $<$<CXX_COMPILER_ID:MSVC>:/W2>
     $<$<CXX_COMPILER_ID:MSVC>:/EHsc>
+    $<$<CXX_COMPILER_ID:MSVC>:/permissive->
 )
 
 ################################################################################
diff --git a/src/control.cpp b/src/control.cpp
index c38e8d440..64b759649 100644
--- a/src/control.cpp
+++ b/src/control.cpp
@@ -3374,7 +3374,7 @@ void Control::on_expandColor()
     expandRange(fromColor, toColor, clickedColor);
 
     saveChange(fromColor, toColor, map);
-};
+}
 
 /**
  * @brief Selects one color as starting point for furher additions
-- 
GitLab