fix: add fallthrough annotations (-Wimplicit-fallthrough)
[lttng-ust.git] / liblttng-ust / lttng-hash-helper.h
index 6c8008a06fcf7fb1426ca85b13f5986fab62e52d..1978fbde6f55de4f39db5e628377ad563bf3e2f8 100644 (file)
@@ -102,10 +102,10 @@ void lttng_hashword2(
 
        /*----------------------------------- handle the last 3 uint32_t's */
        switch (length) {       /* all the case statements fall through */
-       case 3: c += k[2];
-       case 2: b += k[1];
+       case 3: c += k[2];      /* fall through */
+       case 2: b += k[1];      /* fall through */
        case 1: a += k[0];
-               final(a, b, c);
+               final(a, b, c); /* fall through */
        case 0:                 /* case 0: nothing left to add */
                break;
        }
This page took 0.023423 seconds and 4 git commands to generate.