Work around compiler warnings for unused variables in the generic zgemm3m_Xcopy kernels
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 2 Dec 2017 21:51:58 +0000 (22:51 +0100)
committerGitHub <noreply@github.com>
Sat, 2 Dec 2017 21:51:58 +0000 (22:51 +0100)
kernel/generic/zgemm3m_ncopy_2.c
kernel/generic/zgemm3m_ncopy_4.c
kernel/generic/zgemm3m_ncopy_8.c
kernel/generic/zgemm3m_tcopy_2.c
kernel/generic/zgemm3m_tcopy_4.c
kernel/generic/zgemm3m_tcopy_8.c

index dd5a732..1dee780 100644 (file)
@@ -67,6 +67,15 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda,
   FLOAT *b_offset;
   FLOAT a1, a2, a3, a4;
 
+/* silence compiler warnings about unused-but-set variables:
+   depending on compile-time arguments either the odd or the
+   even-numbered variables will not be used */
+   
+  (void)a1;
+  (void)a2;
+  (void)a3;
+  (void)a4;
+
   lda *= 2;
 
   a_offset = a;
index b4d23e2..a975e67 100644 (file)
@@ -67,6 +67,19 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda,
   FLOAT *b_offset;
   FLOAT a1, a2, a3, a4, a5, a6, a7, a8;
 
+/* silence compiler warnings about unused-but-set variables:
+   depending on compile-time arguments either the odd or the
+   even-numbered variables will not be used */
+   
+  (void)a1;
+  (void)a2;
+  (void)a3;
+  (void)a4;
+  (void)a5;
+  (void)a6;
+  (void)a7;
+  (void)a8;
+
   lda *= 2;
 
   a_offset = a;
index d3e5da8..5067656 100644 (file)
@@ -69,6 +69,27 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda,
   FLOAT a1, a2,  a3,  a4,  a5,  a6,  a7,  a8;
   FLOAT a9, a10, a11, a12, a13, a14, a15, a16;
 
+/* silence compiler warnings about unused-but-set variables:
+   depending on compile-time arguments either the odd or the
+   even-numbered variables will not be used */
+   
+  (void)a1;
+  (void)a2;
+  (void)a3;
+  (void)a4;
+  (void)a5;
+  (void)a6;
+  (void)a7;
+  (void)a8;
+  (void)a9;
+  (void)a10;
+  (void)a11;
+  (void)a12;
+  (void)a13;
+  (void)a14;
+  (void)a15;
+  (void)a16;
+
 #if 0
 #ifdef REAL_ONLY
   fprintf(stderr, "NON Real  ");
index b8a2626..0ef3bf9 100644 (file)
@@ -67,6 +67,19 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda,
   FLOAT *b_offset, *b_offset1, *b_offset2;
   FLOAT a1, a2, a3, a4, a5, a6, a7, a8;
 
+/* silence compiler warnings about unused-but-set variables:
+   depending on compile-time arguments either the odd or the
+   even-numbered variables will not be used */
+   
+  (void)a1;
+  (void)a2;
+  (void)a3;
+  (void)a4;
+  (void)a5;
+  (void)a6;
+  (void)a7;
+  (void)a8;
+
   a_offset   = a;
   b_offset   = b;
 
index 2c071ff..86ec255 100644 (file)
@@ -67,6 +67,19 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda,
   FLOAT *b_offset, *b_offset1, *b_offset2, *b_offset3;
   FLOAT a1, a2, a3, a4, a5, a6, a7, a8;
 
+/* silence compiler warnings about unused-but-set variables:
+   depending on compile-time arguments either the odd or the
+   even-numbered variables will not be used */
+   
+  (void)a1;
+  (void)a2;
+  (void)a3;
+  (void)a4;
+  (void)a5;
+  (void)a6;
+  (void)a7;
+  (void)a8;
+
   a_offset   = a;
   b_offset   = b;
 
index 5f71602..3a9eb8c 100644 (file)
@@ -69,6 +69,27 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda,
   FLOAT a1, a2,  a3,  a4,  a5,  a6,  a7,  a8;
   FLOAT a9, a10, a11, a12, a13, a14, a15, a16;
 
+/* silence compiler warnings about unused-but-set variables:
+   depending on compile-time arguments either the odd or the
+   even-numbered variables will not be used */
+   
+  (void)a1;
+  (void)a2;
+  (void)a3;
+  (void)a4;
+  (void)a5;
+  (void)a6;
+  (void)a7;
+  (void)a8;
+  (void)a9;
+  (void)a10;
+  (void)a11;
+  (void)a12;
+  (void)a13;
+  (void)a14;
+  (void)a15;
+  (void)a16;
+
 #if 0
 #ifdef REAL_ONLY
   fprintf(stderr, "TNS Real  ");