Few warnings removed (MSVC). 27/224127/3
authorVictor Cebollada <v.cebollada@samsung.com>
Thu, 6 Feb 2020 09:29:07 +0000 (09:29 +0000)
committerVictor Cebollada <v.cebollada@samsung.com>
Thu, 6 Feb 2020 11:45:59 +0000 (11:45 +0000)
* Specific pragma warnings for GNU
* Wrong struct/class forward declarations

Change-Id: Ia797176a955ca698266ffcb9b60ac05c1cdc91b2
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali/internal/event/common/scene-impl.h
dali/internal/event/events/gesture-recognizer.h
dali/internal/event/events/rotation-gesture/rotation-gesture-detector-impl.h
dali/public-api/common/dali-common.h
dali/public-api/math/math-utils.h
dali/public-api/object/type-registry.h

index f9db963bf7b9ecaf3b3d68a9cfb61c6bbe5b0ee8..01766dfff9f27831fcfb75f618724ecaaacda296 100644 (file)
@@ -35,7 +35,7 @@ namespace Dali
 namespace Integration
 {
 
-class Event;
+struct Event;
 
 }
 
index 3c99c3e01253d5e46facafcf780f84fb7276756e..85051912d81a7f2c8c987c48ab2ee838e22c92ba 100644 (file)
@@ -36,7 +36,7 @@ struct TouchEvent;
 
 namespace Internal
 {
-class GestureRequest;
+struct GestureRequest;
 class Scene;
 
 template< typename T>
index 0b8f17b490e8c2f41465d57dcef6b5729965d884..becfe0fcbf4ae2364d8a01fc6ac20f9175f77fce 100644 (file)
@@ -25,7 +25,7 @@
 namespace Dali
 {
 
-class RotationGesture;
+struct RotationGesture;
 
 namespace Internal
 {
index d5424f8762ad277616e7d48bc5778ab19a085312..5b668f578a4d33a87d8acf9394a6c0828ad77469 100755 (executable)
@@ -204,10 +204,12 @@ public:
 #endif
 
 /// Use DALI_FALLTHROUGH in switch statements where one case is supposed to fall through into another case
+#define DALI_FALLTHROUGH
+#if __GNUC__
 #if __has_cpp_attribute(fallthrough)
+#undef DALI_FALLTHROUGH
 #define DALI_FALLTHROUGH [[fallthrough]]
-#else
-#define DALI_FALLTHROUGH
+#endif
 #endif
 
 #endif // DALI_COMMON_H
index d91c19898f481089212add5d54e56351049001df..55024c758fe8544b015dd915cd211a96951e71fb 100644 (file)
@@ -167,13 +167,17 @@ inline float GetRangedEpsilon( float a, float b )
  * @param[in] value the value to compare
  * @return true if the value is equal to zero
  */
+#if __GNUC__
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wfloat-equal"
+#endif
 inline bool EqualsZero( float value )
 {
   return value == 0.0f;
 }
+#if __GNUC__
 #pragma GCC diagnostic pop
+#endif
 
 /**
  * @brief Helper function to compare equality of two floating point values.
index cb84ba23dec7b2832199a400b35bdf309830691f..49640487ac0c1d12fd2c60e08c80692e95635501 100644 (file)
@@ -37,7 +37,7 @@ namespace Internal DALI_INTERNAL
 {
 class TypeRegistry;
 }
-class DefaultPropertyMetadata;
+struct DefaultPropertyMetadata;
 
 /**
  * @brief The TypeRegistry allows registration of type instance creation functions.