-Wimplicit-fallthrough add commit according to gcc doc.
authorAxel Viala <axel.viala@darnuria.eu>
Fri, 25 Mar 2022 15:51:22 +0000 (16:51 +0100)
committerØyvind "pippin" Kolås <pippin@gimp.org>
Sun, 21 Aug 2022 11:09:36 +0000 (11:09 +0000)
babl/babl-extension.c
babl/babl-icc.c

index 3063d46c731512ec07211792559abc1c687463bd..d6d1a39ee3bf06d2290e905fefbc7b775b388f17 100644 (file)
@@ -340,8 +340,8 @@ babl_extension_load_dir_list (const char *dir_list,
         {
           case '\0':
             eos = 1;
-            /* don't break here, the path needs to be processed */
-
+            // the path needs to be processed.
+            // fall through
           case BABL_PATH_SEPARATOR:
           {
             char *expanded_path = expand_path (path);
index af6dbdd18bea667e319028b6705dc78c90fec800..fa461cd11b0961dd62858daf72ba9dd277f23f37 100644 (file)
@@ -555,6 +555,7 @@ switch (trc->type)
       break;
     }
   case BABL_TRC_FORMULA_SRGB:
+  // fall through
   case BABL_TRC_FORMULA_CIE:
     {
       int lut_size = 512;
@@ -1504,8 +1505,11 @@ ConvertUTF16toUTF8 (const UTF16   **sourceStart,
        }
        switch (bytesToWrite) { /* note: everything falls through. */
            case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
+           // fall through
            case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
+           // fall through
            case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
+           // fall through
            case 1: *--target =  (UTF8)(ch | firstByteMark[bytesToWrite]);
        }
        target += bytesToWrite;