Coverity: annotate fall through on "Missing break in switch" 20/19320/1
Clément DAVID [Mon, 3 Jul 2017 13:18:52 +0000 (15:18 +0200)]
Change-Id: Ib481968ccd04e4f87c25c26826524e20678f2e22

scilab/modules/api_scilab/src/cpp/api_stack_list.cpp
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/ScilabTypeCoder.java

index 6d50ef5..f67d754 100644 (file)
@@ -107,7 +107,7 @@ SciErr getListItemNumber(void* _pvCtx, int* _piAddress, int* _piNbItem)
     types::List* pL = (types::List*)_piAddress;
     switch (iType)
     {
-        case sci_list :
+        case sci_list : /* fall through */
         case sci_tlist :
             *_piNbItem = pL->getSize();
         case sci_mlist :
index b6ab5bc..153c1bf 100644 (file)
@@ -694,15 +694,20 @@ public class ScilabTypeCoder {
             case sci_ints:
                 // special case for integer precision
                 precision = (int) vec.get(position++);
+            // fall through
             case sci_matrix:
+            // fall through
             case sci_boolean:
+            // fall through
             case sci_strings:
                 position++; // n-Dims not managed
                 height = (int) vec.get(position++);
                 width = (int) vec.get(position++);
                 break;
             case sci_list:
+            // fall through
             case sci_mlist:
+            // fall through
             case sci_tlist:
                 listLen = (int) vec.get(position++);
                 break;