From 44c3f16bcb7404446416b6988ad631bbeb8545d4 Mon Sep 17 00:00:00 2001 From: Gabriele 'matrix' Gristina Date: Mon, 25 Jan 2016 13:32:45 +0100 Subject: [PATCH] Fixed compiler warnings (unused variable) --- OpenCL/m00000_a3.cl | 4 ++-- OpenCL/m00010_a3.cl | 4 ++-- OpenCL/m00020_a3.cl | 4 ++-- OpenCL/m00400.cl | 2 +- OpenCL/m00500.cl | 2 +- OpenCL/m01600.cl | 2 +- OpenCL/m02400_a3.cl | 4 ++-- OpenCL/m02410_a3.cl | 4 ++-- OpenCL/m02500.cl | 2 +- OpenCL/m06300.cl | 2 +- OpenCL/m07700_a3.cl | 8 ++++---- OpenCL/m07800_a3.cl | 8 ++++---- OpenCL/m10500.cl | 9 ++++----- OpenCL/m11900.cl | 2 +- OpenCL/m12900.cl | 4 ++-- OpenCL/m13000.cl | 4 ++-- 16 files changed, 32 insertions(+), 33 deletions(-) diff --git a/OpenCL/m00000_a3.cl b/OpenCL/m00000_a3.cl index cedf59294..0f6ef0dbd 100644 --- a/OpenCL/m00000_a3.cl +++ b/OpenCL/m00000_a3.cl @@ -130,7 +130,7 @@ static void m00000m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x w0 = w0l | w0r; - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; @@ -350,7 +350,7 @@ static void m00000s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x pre_b = b_rev - (pre_a ^ pre_cd); const u32x pre_c = c_rev - (pre_a ^ pre_b ^ pre_d); - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; diff --git a/OpenCL/m00010_a3.cl b/OpenCL/m00010_a3.cl index 677fc5ac3..8374a9941 100644 --- a/OpenCL/m00010_a3.cl +++ b/OpenCL/m00010_a3.cl @@ -187,7 +187,7 @@ static void m00010m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x w0 = w0l | w0r; - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; @@ -407,7 +407,7 @@ static void m00010s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x pre_b = b_rev - (pre_a ^ pre_cd); const u32x pre_c = c_rev - (pre_a ^ pre_b ^ pre_d); - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; diff --git a/OpenCL/m00020_a3.cl b/OpenCL/m00020_a3.cl index 0efc98a98..cae883f21 100644 --- a/OpenCL/m00020_a3.cl +++ b/OpenCL/m00020_a3.cl @@ -169,7 +169,7 @@ static void m00020m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_le * md5 */ - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; @@ -409,7 +409,7 @@ static void m00020s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_le * md5 */ - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; diff --git a/OpenCL/m00400.cl b/OpenCL/m00400.cl index b69a816fb..f4dc23c44 100644 --- a/OpenCL/m00400.cl +++ b/OpenCL/m00400.cl @@ -44,7 +44,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = 0; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); diff --git a/OpenCL/m00500.cl b/OpenCL/m00500.cl index 8b2a8218e..5bd5d9020 100644 --- a/OpenCL/m00500.cl +++ b/OpenCL/m00500.cl @@ -46,7 +46,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = 0; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); diff --git a/OpenCL/m01600.cl b/OpenCL/m01600.cl index 9fb95b005..d0b3036ba 100644 --- a/OpenCL/m01600.cl +++ b/OpenCL/m01600.cl @@ -47,7 +47,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = 0; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); diff --git a/OpenCL/m02400_a3.cl b/OpenCL/m02400_a3.cl index 62cc11486..b734ecc32 100644 --- a/OpenCL/m02400_a3.cl +++ b/OpenCL/m02400_a3.cl @@ -120,7 +120,7 @@ static void m02400m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x w0 = w0l | w0r; - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; @@ -316,7 +316,7 @@ static void m02400s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x w0 = w0l | w0r; - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; diff --git a/OpenCL/m02410_a3.cl b/OpenCL/m02410_a3.cl index 20edd68ef..8f12d1e60 100644 --- a/OpenCL/m02410_a3.cl +++ b/OpenCL/m02410_a3.cl @@ -165,7 +165,7 @@ static void m02410m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x w0 = w0l | w0r; - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; @@ -406,7 +406,7 @@ static void m02410s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global k const u32x w0 = w0l | w0r; - u32x tmp2; + //u32x tmp2; u32x a = MD5M_A; u32x b = MD5M_B; diff --git a/OpenCL/m02500.cl b/OpenCL/m02500.cl index 9128f2901..d75ad787d 100644 --- a/OpenCL/m02500.cl +++ b/OpenCL/m02500.cl @@ -44,7 +44,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = w3[3]; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); diff --git a/OpenCL/m06300.cl b/OpenCL/m06300.cl index 34457deb7..f83abff54 100644 --- a/OpenCL/m06300.cl +++ b/OpenCL/m06300.cl @@ -44,7 +44,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = 0; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); diff --git a/OpenCL/m07700_a3.cl b/OpenCL/m07700_a3.cl index 0bc3b13f9..566f77cd4 100644 --- a/OpenCL/m07700_a3.cl +++ b/OpenCL/m07700_a3.cl @@ -784,7 +784,7 @@ __kernel void m07700_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; @@ -837,7 +837,7 @@ __kernel void m07700_m08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; @@ -894,7 +894,7 @@ __kernel void m07700_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; @@ -947,7 +947,7 @@ __kernel void m07700_s08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; diff --git a/OpenCL/m07800_a3.cl b/OpenCL/m07800_a3.cl index ad5144a61..23089623f 100644 --- a/OpenCL/m07800_a3.cl +++ b/OpenCL/m07800_a3.cl @@ -654,7 +654,7 @@ __kernel void m07800_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; @@ -707,7 +707,7 @@ __kernel void m07800_m08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; @@ -764,7 +764,7 @@ __kernel void m07800_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; @@ -817,7 +817,7 @@ __kernel void m07800_s08 (__global pw_t *pws, __global kernel_rule_t *rules_buf, * modifier */ - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); u32 w0[4]; diff --git a/OpenCL/m10500.cl b/OpenCL/m10500.cl index 4f6f1fe37..2b513214f 100644 --- a/OpenCL/m10500.cl +++ b/OpenCL/m10500.cl @@ -176,7 +176,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = w3[3]; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); @@ -259,7 +259,7 @@ __kernel void m10500_init (__global pw_t *pws, __global kernel_rule_t *rules_buf */ const u32 gid = get_global_id (0); - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); if (gid >= gid_max) return; @@ -290,9 +290,8 @@ __kernel void m10500_init (__global pw_t *pws, __global kernel_rule_t *rules_buf * shared */ - __local RC4_KEY rc4_keys[64]; - - __local RC4_KEY *rc4_key = &rc4_keys[lid]; + //__local RC4_KEY rc4_keys[64]; + //__local RC4_KEY *rc4_key = &rc4_keys[lid]; /** * U_buf diff --git a/OpenCL/m11900.cl b/OpenCL/m11900.cl index f87cfd09f..466a03578 100644 --- a/OpenCL/m11900.cl +++ b/OpenCL/m11900.cl @@ -45,7 +45,7 @@ static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], co u32 we_t = w3[2]; u32 wf_t = w3[3]; - u32 tmp2; + //u32 tmp2; MD5_STEP (MD5_Fo, a, b, c, d, w0_t, MD5C00, MD5S00); MD5_STEP (MD5_Fo, d, a, b, c, w1_t, MD5C01, MD5S01); diff --git a/OpenCL/m12900.cl b/OpenCL/m12900.cl index 386b7a264..a2232afba 100644 --- a/OpenCL/m12900.cl +++ b/OpenCL/m12900.cl @@ -235,7 +235,7 @@ __kernel void m12900_init (__global pw_t *pws, __global kernel_rule_t *rules_buf */ const u32 gid = get_global_id (0); - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); if (gid >= gid_max) return; @@ -271,7 +271,7 @@ __kernel void m12900_init (__global pw_t *pws, __global kernel_rule_t *rules_buf w3[2] = pws[gid].i[14]; w3[3] = pws[gid].i[15]; - const u32 pw_len = pws[gid].pw_len; + //const u32 pw_len = pws[gid].pw_len; w0[0] = swap32 (w0[0]); w0[1] = swap32 (w0[1]); diff --git a/OpenCL/m13000.cl b/OpenCL/m13000.cl index 39d864bbe..dce6e9f2d 100644 --- a/OpenCL/m13000.cl +++ b/OpenCL/m13000.cl @@ -235,7 +235,7 @@ __kernel void m13000_init (__global pw_t *pws, __global kernel_rule_t *rules_buf */ const u32 gid = get_global_id (0); - const u32 lid = get_local_id (0); + //const u32 lid = get_local_id (0); if (gid >= gid_max) return; @@ -271,7 +271,7 @@ __kernel void m13000_init (__global pw_t *pws, __global kernel_rule_t *rules_buf w3[2] = pws[gid].i[14]; w3[3] = pws[gid].i[15]; - const u32 pw_len = pws[gid].pw_len; + //const u32 pw_len = pws[gid].pw_len; w0[0] = swap32 (w0[0]); w0[1] = swap32 (w0[1]);