Fix warnings when compiling with clang

The following warnings are addressed:

comparison of different enumeration types in switch statement

Change-Id: I6cb3948aeab7287851c57ecc1d4b3a439ab14ec6


[ROCm/hip commit: 2613b22e8a]
Этот коммит содержится в:
Vladislav Sytchenko
2020-04-08 16:00:31 -04:00
коммит произвёл Vladislav Sytchenko
родитель ea96deb876
Коммит 8c96beef1b
+2 -2
Просмотреть файл
@@ -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;