Skip to content

Commit e87c4f0

Browse files
committed
[NFC] Fix Werror=maybe-uninitialized in GCC 13 build
1 parent ca6af1e commit e87c4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,7 @@ std::optional<sycl::exception> checkDevSupportJointMatrix(
33933393

33943394
const std::string &MatrixTypeUser = JointMatrixVec[0];
33953395
const std::string &UseStrUser = JointMatrixVec[1];
3396-
size_t RowsUser, ColsUser = 0;
3396+
size_t RowsUser = 0, ColsUser = 0;
33973397
try {
33983398
RowsUser = std::stoi(JointMatrixVec[2]);
33993399
ColsUser = std::stoi(JointMatrixVec[3]);
@@ -3476,7 +3476,7 @@ std::optional<sycl::exception> checkDevSupportJointMatrixMad(
34763476
const std::string &MatrixTypeBStrUser = JointMatrixMadVec[1];
34773477
const std::string &MatrixTypeCStrUser = JointMatrixMadVec[2];
34783478
const std::string &MatrixTypeDStrUser = JointMatrixMadVec[3];
3479-
size_t MSizeUser, KSizeUser, NSizeUser = 0;
3479+
size_t MSizeUser = 0, KSizeUser = 0, NSizeUser = 0;
34803480
try {
34813481
MSizeUser = std::stoi(JointMatrixMadVec[4]);
34823482
KSizeUser = std::stoi(JointMatrixMadVec[5]);

0 commit comments

Comments
 (0)