Skip to content

Commit af88438

Browse files
authored
Merge pull request #3376 from martin-frbg/issue3370
Fix a few harmless compiler warnings
2 parents d1ee2e9 + 0925dfe commit af88438

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

interface/zsyr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void NAME(char *UPLO, blasint *N, FLOAT *ALPHA,
119119
void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, int n, FLOAT alpha, FLOAT *x, int incx, FLOAT *a, int lda) {
120120

121121
FLOAT *buffer;
122-
int trans, uplo;
122+
int uplo;
123123
blasint info;
124124
FLOAT * ALPHA = α
125125
FLOAT alpha_r = ALPHA[0];
@@ -130,7 +130,6 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, int n, FLOAT alpha, FLO
130130

131131
PRINT_DEBUG_CNAME;
132132

133-
trans = -1;
134133
uplo = -1;
135134
info = 0;
136135

kernel/generic/dot.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
4747

4848
if ( (inc_x == 1) && (inc_y == 1) )
4949
{
50-
int n1 = n & -4;
5150
#if V_SIMD && !defined(DSDOT)
5251
const int vstep = v_nlanes_f32;
5352
const int unrollx4 = n & (-vstep * 4);
@@ -84,6 +83,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
8483
}
8584
dot = v_sum_f32(vsum0);
8685
#elif defined(DSDOT)
86+
int n1 = n & -4;
8787
for (; i < n1; i += 4)
8888
{
8989
dot += (double) y[i] * (double) x[i]
@@ -92,6 +92,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
9292
+ (double) y[i+3] * (double) x[i+3] ;
9393
}
9494
#else
95+
int n1 = n & -4;
9596
for (; i < n1; i += 4)
9697
{
9798
dot += y[i] * x[i]

kernel/x86_64/sgemv_n_4.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ static void sgemv_kernel_4x4(BLASLONG n, FLOAT **ap, FLOAT *xo, FLOAT *y, FLOAT
115115

116116
#endif
117117

118+
#ifndef HAVE_SGEMV_N_SKYLAKE_KERNEL
119+
118120
#ifndef HAVE_KERNEL_4x2
119121

120122
static void sgemv_kernel_4x2( BLASLONG n, FLOAT **ap, FLOAT *x, FLOAT *y, FLOAT *alpha) __attribute__ ((noinline));
@@ -170,6 +172,7 @@ static void sgemv_kernel_4x2( BLASLONG n, FLOAT **ap, FLOAT *x, FLOAT *y, FLOAT
170172

171173
}
172174

175+
#endif
173176
#endif
174177

175178
#ifndef HAVE_KERNEL_4x1

0 commit comments

Comments
 (0)