fix: shadowed local variable (-Wshadow)
[urcu.git] / tests / benchmark / test_urcu_hash.h
index 2f708a115cd412bf620cbeda9e1b068b1c399b48..dfb8116a1fd2651ebcc6f565d3d9826beb86ce62 100644 (file)
@@ -37,7 +37,6 @@
 
 #include <urcu/tls-compat.h>
 #include <compat-rand.h>
-#include "cpuset.h"
 #include "thread-id.h"
 #include "../common/debug-yield.h"
 
@@ -249,10 +248,11 @@ uint32_t hash_u32(
 
        /*----------------------------------- 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);
+               /* fall through */
        case 0:                 /* case 0: nothing left to add */
                break;
        }
@@ -285,10 +285,11 @@ void 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);
+               /* fall through */
        case 0:                 /* case 0: nothing left to add */
                break;
        }
This page took 0.023538 seconds and 4 git commands to generate.