Skip to content

Commit 847c20c

Browse files
fix uninitialized variables i
1 parent 4c22828 commit 847c20c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kernel/power/cgemv_n.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static void cgemv_kernel_4x1(BLASLONG n, FLOAT *ap, FLOAT *x, FLOAT *y) {
181181

182182

183183
static void add_y(BLASLONG n, FLOAT *src, FLOAT *dest, BLASLONG inc_dest, FLOAT alpha_r, FLOAT alpha_i) {
184-
BLASLONG i;
184+
BLASLONG i=0;
185185

186186

187187
if (inc_dest != 2) {
@@ -246,7 +246,7 @@ static void add_y(BLASLONG n, FLOAT *src, FLOAT *dest, BLASLONG inc_dest, FLOAT
246246

247247

248248
int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha_r, FLOAT alpha_i, FLOAT *a, BLASLONG lda, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y, FLOAT * buffer) {
249-
BLASLONG i;
249+
BLASLONG i=0;
250250
FLOAT *a_ptr;
251251
FLOAT *x_ptr;
252252
FLOAT *y_ptr;

kernel/power/cgemv_t.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ static void copy_x(BLASLONG n, FLOAT *src, FLOAT *dest, BLASLONG inc_src) {
276276
}
277277

278278
int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha_r, FLOAT alpha_i, FLOAT *a, BLASLONG lda, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y, FLOAT *buffer) {
279-
BLASLONG i;
280-
BLASLONG j;
279+
BLASLONG i=0;
280+
BLASLONG j=0;
281281
FLOAT *a_ptr;
282282
FLOAT *x_ptr;
283283
FLOAT *y_ptr;

0 commit comments

Comments
 (0)