Fix warnings when compiling with clang

The following warnings are addressed:

comparison of different enumeration types in switch statement

Change-Id: I6cb3948aeab7287851c57ecc1d4b3a439ab14ec6


[ROCm/clr commit: 524a81fcf5]
This commit is contained in:
Vladislav Sytchenko
2020-04-08 16:00:31 -04:00
zatwierdzone przez Vladislav Sytchenko
rodzic 50e6094f4f
commit 3da0c744e1
@@ -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;