Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 7beabd6

Browse files
committed
fix coverity scan errors
1 parent 11833d8 commit 7beabd6

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/common/tensor2d.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct tensor2D {
2323
int64_t capacity = 0;
2424
int stride = 0;
2525
bool force_compact = false;
26-
bool own;
26+
bool own = false;
2727
int padded_dim1 = 0;
2828

2929
tensor2D() = default;

src/mm_kernel_common_amx.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ namespace functional {
459459
re = _mm512_setzero_epi32();
460460
rf = _mm512_setzero_epi32();
461461
break;
462+
default:
463+
assert(false);
464+
return;
462465
}
463466

464467
transpose_m512i_16x16(r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, ra, rb, rc, rd, re, rf);
@@ -802,6 +805,9 @@ namespace functional {
802805
re = _mm512_setzero_epi32();
803806
rf = _mm512_setzero_epi32();
804807
break;
808+
default:
809+
assert(false);
810+
return;
805811
}
806812
transpose_m512i_16x16(r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, ra, rb, rc, rd, re, rf);
807813
_mm512_storeu_epi32(dst, r0);

0 commit comments

Comments
 (0)