[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita] libs/ui: Remove attempt to add -Wno-switch
From:       Frederik Gladhorn <gladhorn () kde ! org>
Date:       2016-10-28 21:21:18
Message-ID: E1c0EaU-0001kV-1z () code ! kde ! org
[Download RAW message or body]

Git commit f2f6b11e92f296ac052cbd1c04c2d2f72651eb85 by Frederik Gladhorn.
Committed on 28/10/2016 at 21:20.
Pushed by gladhorn into branch 'master'.

Remove attempt to add -Wno-switch

This is dead code and luckily there is no case 1001 any more.

M  +0    -8    libs/ui/CMakeLists.txt

http://commits.kde.org/krita/f2f6b11e92f296ac052cbd1c04c2d2f72651eb85

diff --git a/libs/ui/CMakeLists.txt b/libs/ui/CMakeLists.txt
index e884f7e..84cb40b 100644
--- a/libs/ui/CMakeLists.txt
+++ b/libs/ui/CMakeLists.txt
@@ -1,11 +1,3 @@
-# Disable -Wswitch because of the extra definitions we here:
-# kis_input_manager.cpp: In member function ‘virtual bool \
                KisInputManager::eventFilter(QObject*, QEvent*)':
-# warning: case value ‘1001' not in enumerated type ‘QEvent::Type' [-Wswitch]
-# warning: case value ‘1002' not in enumerated type ‘QEvent::Type' [-Wswitch]
-if (CMAKE_COMPILER_IS_GNUCXX)
-    add_definitions(${KDE4_ENABLE_EXCEPTIONS} -Wno-switch)
-endif ()
-
 include_directories(
     ${CMAKE_CURRENT_SOURCE_DIR}/qtlockedfile
     ${EXIV2_INCLUDE_DIR}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic