lottie: Fixed SVACE warning regarding missing break statement. 54/196154/2
authorsubhransu mohanty <sub.mohanty@samsung.com>
Mon, 24 Dec 2018 04:28:00 +0000 (13:28 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Mon, 24 Dec 2018 04:32:59 +0000 (13:32 +0900)
Change-Id: I3afe3a350333b70722c7461c2c64345db10a8c4a

src/vector/vbitmap.cpp
src/vector/vglobal.h
src/vector/vmatrix.cpp

index 9be3320..fa46490 100644 (file)
@@ -53,6 +53,7 @@ VBitmapData *VBitmapData::create(int width, int height, VBitmap::Format format)
     switch (format) {
     case VBitmap::Format::Alpha8:
         depth = 8;
+        VECTOR_FALLTHROUGH
     case VBitmap::Format::ARGB32:
     case VBitmap::Format::ARGB32_Premultiplied:
         depth = 32;
index 87438cf..f1d3a07 100644 (file)
@@ -33,7 +33,11 @@ typedef uint8_t  uchar;
 
 #include "vdebug.h"
 
+#if __GNUC__ >= 7
+#define EINA_FALLTHROUGH __attribute__ ((fallthrough));
+#else
 #define VECTOR_FALLTHROUGH
+#endif
 
 #include <atomic>
 class RefCount {
index 08be579..104fe70 100644 (file)
@@ -130,6 +130,7 @@ VMatrix &VMatrix::translate(float dx, float dy)
         break;
     case MatrixType::Project:
         m33 += dx * m13 + dy * m23;
+        VECTOR_FALLTHROUGH
     case MatrixType::Shear:
     case MatrixType::Rotate:
         mtx += dx * m11 + dy * m21;
@@ -153,10 +154,12 @@ VMatrix &VMatrix::scale(float sx, float sy)
     case MatrixType::Project:
         m13 *= sx;
         m23 *= sy;
+        VECTOR_FALLTHROUGH
     case MatrixType::Rotate:
     case MatrixType::Shear:
         m12 *= sx;
         m21 *= sy;
+        VECTOR_FALLTHROUGH
     case MatrixType::Scale:
         m11 *= sx;
         m22 *= sy;
@@ -185,6 +188,7 @@ VMatrix &VMatrix::shear(float sh, float sv)
         float tm23 = sh * m13;
         m13 += tm13;
         m23 += tm23;
+        VECTOR_FALLTHROUGH
     }
     case MatrixType::Rotate:
     case MatrixType::Shear: {
@@ -249,6 +253,7 @@ VMatrix &VMatrix::rotate(float a, Axis axis)
             float tm23 = -sina * m13 + cosa * m23;
             m13 = tm13;
             m23 = tm23;
+            VECTOR_FALLTHROUGH
         }
         case MatrixType::Rotate:
         case MatrixType::Shear: {