From: Martin Kroeker Date: Sat, 2 Dec 2017 21:51:58 +0000 (+0100) Subject: Work around compiler warnings for unused variables in the generic zgemm3m_Xcopy kernels X-Git-Tag: v0.3.0~52^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8213385ab88f13a75d91d2e2d69204259627aceb;p=platform%2Fupstream%2Fopenblas.git Work around compiler warnings for unused variables in the generic zgemm3m_Xcopy kernels --- diff --git a/kernel/generic/zgemm3m_ncopy_2.c b/kernel/generic/zgemm3m_ncopy_2.c index dd5a732..1dee780 100644 --- a/kernel/generic/zgemm3m_ncopy_2.c +++ b/kernel/generic/zgemm3m_ncopy_2.c @@ -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; diff --git a/kernel/generic/zgemm3m_ncopy_4.c b/kernel/generic/zgemm3m_ncopy_4.c index b4d23e2..a975e67 100644 --- a/kernel/generic/zgemm3m_ncopy_4.c +++ b/kernel/generic/zgemm3m_ncopy_4.c @@ -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; diff --git a/kernel/generic/zgemm3m_ncopy_8.c b/kernel/generic/zgemm3m_ncopy_8.c index d3e5da8..5067656 100644 --- a/kernel/generic/zgemm3m_ncopy_8.c +++ b/kernel/generic/zgemm3m_ncopy_8.c @@ -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 "); diff --git a/kernel/generic/zgemm3m_tcopy_2.c b/kernel/generic/zgemm3m_tcopy_2.c index b8a2626..0ef3bf9 100644 --- a/kernel/generic/zgemm3m_tcopy_2.c +++ b/kernel/generic/zgemm3m_tcopy_2.c @@ -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; diff --git a/kernel/generic/zgemm3m_tcopy_4.c b/kernel/generic/zgemm3m_tcopy_4.c index 2c071ff..86ec255 100644 --- a/kernel/generic/zgemm3m_tcopy_4.c +++ b/kernel/generic/zgemm3m_tcopy_4.c @@ -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; diff --git a/kernel/generic/zgemm3m_tcopy_8.c b/kernel/generic/zgemm3m_tcopy_8.c index 5f71602..3a9eb8c 100644 --- a/kernel/generic/zgemm3m_tcopy_8.c +++ b/kernel/generic/zgemm3m_tcopy_8.c @@ -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 ");