Revert "[Tizen] GCC 9.2 Support"
authorSeungho, Baek <sbsh.baek@samsung.com>
Tue, 21 Jan 2020 08:25:34 +0000 (17:25 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Tue, 21 Jan 2020 08:25:34 +0000 (17:25 +0900)
This reverts commit 9d6d686c6dd8d2bad11844a9dd6514b1c52f50a3.

build/tizen/CMakeLists.txt
dali/internal/event/events/pan-gesture/pan-gesture-processor.cpp
dali/internal/event/events/touch-event-processor.cpp
dali/internal/render/common/render-manager.cpp
dali/public-api/common/dali-common.h

index b41d996..850ac0c 100644 (file)
@@ -107,7 +107,7 @@ IF( NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
   ADD_COMPILE_OPTIONS( -Werror )
 ENDIF()
 
-ADD_COMPILE_OPTIONS( -Wall -Wextra -Wno-unused-parameter -Wfloat-equal -Wno-class-memaccess -Wno-cast-function-type )
+ADD_COMPILE_OPTIONS( -Wall -Wextra -Wno-unused-parameter -Wfloat-equal )
 
 IF( ENABLE_COVERAGE OR "$ENV{CXXFLAGS}" MATCHES --coverage )
   ADD_COMPILE_OPTIONS( --coverage )
index 122de79..05589ef 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -207,10 +207,8 @@ void PanGestureProcessor::Process( Scene& scene, const PanGestureEvent& panEvent
     {
       // Requires a core update
       mNeedsUpdate = true;
-
-      DALI_FALLTHROUGH;
     }
-
+    // No break, Fallthrough
     case Gesture::Finished:
     case Gesture::Cancelled:
     {
index fb024a3..b9047bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -410,9 +410,8 @@ void TouchEventProcessor::ProcessTouchEvent( const Integration::TouchEvent& even
         }
 
         mTouchDownConsumedActor.SetActor( NULL );
-
-        DALI_FALLTHROUGH;
       }
+      // No break, Fallthrough
 
       case PointState::DOWN:
       {
index c539eb1..fbad2b3 100755 (executable)
@@ -800,6 +800,7 @@ void RenderManager::DoRender( RenderInstruction& instruction )
   if( surfaceFrameBuffer &&
       partialUpdateAvailable == Integration::PartialUpdateAvailable::TRUE )
   {
+    const RenderListContainer::SizeType renderListCount = instruction.RenderListCount();
     // Iterate through each render list.
     if( surfaceFrameBuffer->IsPartialUpdateEnabled() )
     {
index c7e3215..ba252e8 100755 (executable)
@@ -2,7 +2,7 @@
 #define DALI_COMMON_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -199,11 +199,4 @@ public:
 #define DALI_ASSERT_DEBUG(cond)
 #endif
 
-/// Use DALI_FALLTHROUGH in switch statements where one case is supposed to fall through into another case
-#if __has_cpp_attribute(fallthrough)
-#define DALI_FALLTHROUGH [[fallthrough]]
-#else
-#define DALI_FALLTHROUGH
-#endif
-
 #endif // DALI_COMMON_H