@@ -1071,8 +1071,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemImageRead(
1071
1071
1072
1072
hipArray *Array = std::get<SurfaceMem>(hImage->Mem ).getArray (Device);
1073
1073
1074
- hipArray_Format Format;
1075
- size_t NumChannels;
1074
+ hipArray_Format Format{} ;
1075
+ size_t NumChannels{} ;
1076
1076
UR_CHECK_ERROR (getArrayDesc (Array, Format, NumChannels));
1077
1077
1078
1078
int ElementByteSize = imageElementByteSize (Format);
@@ -1132,8 +1132,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemImageWrite(
1132
1132
hipArray *Array =
1133
1133
std::get<SurfaceMem>(hImage->Mem ).getArray (hQueue->getDevice ());
1134
1134
1135
- hipArray_Format Format;
1136
- size_t NumChannels;
1135
+ hipArray_Format Format{} ;
1136
+ size_t NumChannels{} ;
1137
1137
UR_CHECK_ERROR (getArrayDesc (Array, Format, NumChannels));
1138
1138
1139
1139
int ElementByteSize = imageElementByteSize (Format);
@@ -1195,14 +1195,14 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemImageCopy(
1195
1195
1196
1196
hipArray *SrcArray =
1197
1197
std::get<SurfaceMem>(hImageSrc->Mem ).getArray (hQueue->getDevice ());
1198
- hipArray_Format SrcFormat;
1199
- size_t SrcNumChannels;
1198
+ hipArray_Format SrcFormat{} ;
1199
+ size_t SrcNumChannels{} ;
1200
1200
UR_CHECK_ERROR (getArrayDesc (SrcArray, SrcFormat, SrcNumChannels));
1201
1201
1202
1202
hipArray *DstArray =
1203
1203
std::get<SurfaceMem>(hImageDst->Mem ).getArray (hQueue->getDevice ());
1204
- hipArray_Format DstFormat;
1205
- size_t DstNumChannels;
1204
+ hipArray_Format DstFormat{} ;
1205
+ size_t DstNumChannels{} ;
1206
1206
UR_CHECK_ERROR (getArrayDesc (DstArray, DstFormat, DstNumChannels));
1207
1207
1208
1208
UR_ASSERT (SrcFormat == DstFormat,
0 commit comments