[Tizen] GCC 9.2 Support 42/221842/1 accepted/tizen/unified/20200109.065503 submit/tizen/20200108.050812
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 7 Jan 2020 16:15:45 +0000 (16:15 +0000)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 8 Jan 2020 04:42:22 +0000 (13:42 +0900)
Change-Id: I762e8e95654724ff648b93172788cdcaf0a0def3

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 850ac0c..b41d996 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 )
+ADD_COMPILE_OPTIONS( -Wall -Wextra -Wno-unused-parameter -Wfloat-equal -Wno-class-memaccess -Wno-cast-function-type )
 
 IF( ENABLE_COVERAGE OR "$ENV{CXXFLAGS}" MATCHES --coverage )
   ADD_COMPILE_OPTIONS( --coverage )
index 05589ef..122de79 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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,8 +207,10 @@ 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 b9047bd..fb024a3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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,8 +410,9 @@ void TouchEventProcessor::ProcessTouchEvent( const Integration::TouchEvent& even
         }
 
         mTouchDownConsumedActor.SetActor( NULL );
+
+        DALI_FALLTHROUGH;
       }
-      // No break, Fallthrough
 
       case PointState::DOWN:
       {
index fbad2b3..c539eb1 100755 (executable)
@@ -800,7 +800,6 @@ 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 ba252e8..c7e3215 100755 (executable)
@@ -2,7 +2,7 @@
 #define DALI_COMMON_H
 
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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,4 +199,11 @@ 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