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 f9db963..01766df 100644 (file)
@@ -35,7 +35,7 @@ namespace Dali
 namespace Integration
 {
 
-class Event;
+struct Event;
 
 }
 
index 3c99c3e..8505191 100644 (file)
@@ -36,7 +36,7 @@ struct TouchEvent;
 
 namespace Internal
 {
-class GestureRequest;
+struct GestureRequest;
 class Scene;
 
 template< typename T>
index d5424f8..5b668f5 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 d91c198..55024c7 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 cb84ba2..4964048 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.