diff --git a/CMakeLists.txt b/CMakeLists.txt index e02b236619a40272065df3cc556aca6d2405e2a4..a3c0f535f5eb579c3c17d3e17a49c76704fa8a9c 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 c38e8d440b0adbb1401b47f26f1e7bb2038d9cf3..64b7596490816a15263a147e9202302fe9c42225 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