GCC 9.2 Support 19/221819/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 7 Jan 2020 16:15:45 +0000 (16:15 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 7 Jan 2020 16:45:53 +0000 (16:45 +0000)
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/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 51bef8d..3d0c908 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.
@@ -210,8 +210,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 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