pixfmt-test: Explicitely mention fall-through
authorGregor Jasny <gjasny@googlemail.com>
Thu, 25 Jul 2013 21:00:20 +0000 (23:00 +0200)
committerGregor Jasny <gjasny@googlemail.com>
Wed, 31 Jul 2013 19:17:21 +0000 (21:17 +0200)
Spotted by Coverity.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
contrib/test/pixfmt-test.c

index 178fefd..43a11c4 100644 (file)
@@ -437,18 +437,23 @@ write_rgb_pixel                   (uint8_t *              dst,
                /* fall through */
        case LE * 256 + 24:
                dst[2] = dst_pixel >> 16;
+               /* fall through */
        case LE * 256 + 16:
                dst[1] = dst_pixel >> 8;
+               /* fall through */
        case LE * 256 + 8:
                dst[0] = dst_pixel;
                break;
 
        case BE * 256 + 32:
                *dst++ = dst_pixel >> 24;
+               /* fall through */
        case BE * 256 + 24:
                *dst++ = dst_pixel >> 16;
+               /* fall through */
        case BE * 256 + 16:
                *dst++ = dst_pixel >> 8;
+               /* fall through */
        case BE * 256 + 8:
                *dst = dst_pixel;
                break;