Fix warnings when compiling with clang
The following warnings are addressed: comparison of different enumeration types in switch statement Change-Id: I6cb3948aeab7287851c57ecc1d4b3a439ab14ec6
Este commit está contenido en:
cometido por
Vladislav Sytchenko
padre
0f9266e3f1
commit
524a81fcf5
@@ -672,7 +672,7 @@ hipResourceDesc getResourceDesc(const HIP_RESOURCE_DESC& resDesc) {
|
||||
hipResourceDesc desc;
|
||||
|
||||
desc.resType = getResourceType(resDesc.resType);
|
||||
switch (resDesc.resType) {
|
||||
switch (desc.resType) {
|
||||
case hipResourceTypeArray:
|
||||
desc.res.array.array = resDesc.res.array.hArray;
|
||||
break;
|
||||
@@ -703,7 +703,7 @@ HIP_RESOURCE_DESC getResourceDesc(const hipResourceDesc& resDesc) {
|
||||
HIP_RESOURCE_DESC desc;
|
||||
|
||||
desc.resType = getResourceType(resDesc.resType);
|
||||
switch (resDesc.resType) {
|
||||
switch (desc.resType) {
|
||||
case HIP_RESOURCE_TYPE_ARRAY:
|
||||
desc.res.array.hArray = resDesc.res.array.array;
|
||||
break;
|
||||
|
||||
Referencia en una nueva incidencia
Block a user