Skip to content

Commit 3eed97f

Browse files
committed
Initialize values to silence cppcheck
1 parent 13e137f commit 3eed97f

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

kernel/generic/trmmkernel_16x2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ int CNAME(BLASLONG bm,BLASLONG bn,BLASLONG bk,FLOAT alpha,FLOAT* ba,FLOAT* bb,FL
5252

5353
#if !defined(LEFT)
5454
off = -offset;
55+
#else
56+
off = 0;
5557
#endif
5658

5759

kernel/generic/trmmkernel_2x2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ int CNAME(BLASLONG bm,BLASLONG bn,BLASLONG bk,FLOAT alpha,FLOAT* ba,FLOAT* bb,FL
1111
BLASLONG off, temp;
1212
#if defined(TRMMKERNEL) && !defined(LEFT)
1313
off = -offset;
14+
#else
15+
off = 0;
1416
#endif
1517
for (j=0; j<bn/2; j+=1)
1618
{

kernel/generic/trmmkernel_8x2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ int CNAME(BLASLONG bm,BLASLONG bn,BLASLONG bk,FLOAT alpha,FLOAT* ba,FLOAT* bb,FL
3434

3535
#if !defined(LEFT)
3636
off = -offset;
37+
#else
38+
off = 0;
3739
#endif
3840

3941

kernel/generic/ztrmmkernel_2x2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ int CNAME(BLASLONG bm,BLASLONG bn,BLASLONG bk,FLOAT alphar,FLOAT alphai,FLOAT* b
1515

1616
#if defined(TRMMKERNEL) && !defined(LEFT)
1717
off = -offset;
18+
#else
19+
off = 0;
1820
#endif
1921
for (j=0; j<bn/2; j+=1)
2022
{

kernel/generic/ztrmmkernel_4x4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ int CNAME(BLASLONG bm,BLASLONG bn,BLASLONG bk,FLOAT alpha_r, FLOAT alpha_i,FLOAT
5353

5454
#if defined(TRMMKERNEL) && !defined(LEFT)
5555
off = -offset;
56+
#else
57+
off = 0;
5658
#endif
5759

5860
for (j=0; j<bn/4; j+=1) // do blocks of the Mx4 loops

0 commit comments

Comments
 (0)