Few warnings removed (MSVC).
[platform/core/uifw/dali-core.git] / dali / public-api / common / dali-common.h
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