From: Gabriele 'matrix' Gristina Date: Mon, 25 Jan 2016 12:32:45 +0000 (+0100) Subject: Fixed compiler warnings (unused variable) X-Git-Tag: v3.00-beta~459^2 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=44c3f16bcb7404446416b6988ad631bbeb8545d4;p=hashcat.git Fixed compiler warnings (unused variable) --- diff --git a/OpenCL/m00000_a3.cl b/OpenCL/m00000_a3.cl index cedf592..0f6ef0d 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 677fc5a..8374a99 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 0efc98a..cae883f 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 b69a816..f4dc23c 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 8b2a821..5bd5d90 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 9fb95b0..d0b3036 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 62cc114..b734ecc 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 20edd68..8f12d1e 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 9128f29..d75ad78 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 34457de..f83abff 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 0bc3b13..566f77c 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 ad5144a..2308962 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 4f6f1fe..2b51321 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 f87cfd0..466a035 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 386b7a2..a2232af 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 39d864b..dce6e9f 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]);