Fixed compiler warnings (unused variable)
authorGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Mon, 25 Jan 2016 12:32:45 +0000 (13:32 +0100)
committerGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Mon, 25 Jan 2016 12:32:45 +0000 (13:32 +0100)
16 files changed:
OpenCL/m00000_a3.cl
OpenCL/m00010_a3.cl
OpenCL/m00020_a3.cl
OpenCL/m00400.cl
OpenCL/m00500.cl
OpenCL/m01600.cl
OpenCL/m02400_a3.cl
OpenCL/m02410_a3.cl
OpenCL/m02500.cl
OpenCL/m06300.cl
OpenCL/m07700_a3.cl
OpenCL/m07800_a3.cl
OpenCL/m10500.cl
OpenCL/m11900.cl
OpenCL/m12900.cl
OpenCL/m13000.cl

index cedf592..0f6ef0d 100644 (file)
@@ -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;
index 677fc5a..8374a99 100644 (file)
@@ -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;
index 0efc98a..cae883f 100644 (file)
@@ -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;
index b69a816..f4dc23c 100644 (file)
@@ -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);
index 8b2a821..5bd5d90 100644 (file)
@@ -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);
index 9fb95b0..d0b3036 100644 (file)
@@ -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);
index 62cc114..b734ecc 100644 (file)
@@ -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;
index 20edd68..8f12d1e 100644 (file)
@@ -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;
index 9128f29..d75ad78 100644 (file)
@@ -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);
index 34457de..f83abff 100644 (file)
@@ -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);
index 0bc3b13..566f77c 100644 (file)
@@ -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];
 
index ad5144a..2308962 100644 (file)
@@ -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];
 
index 4f6f1fe..2b51321 100644 (file)
@@ -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
index f87cfd0..466a035 100644 (file)
@@ -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);
index 386b7a2..a2232af 100644 (file)
@@ -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]);
index 39d864b..dce6e9f 100644 (file)
@@ -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]);