Skip to content

Commit

Permalink
[OpenMP][NFC] Eliminate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoerfert committed May 18, 2023
1 parent e8b15c4 commit 2e3c6c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
/// Print information about the device.
Error obtainInfoImpl(InfoQueueTy &Info) override {
char TmpChar[1000];
const char *TmpCharPtr;
const char *TmpCharPtr = "Unknown";
uint16_t Major, Minor;
uint32_t TmpUInt, TmpUInt2;
uint32_t CacheSize[4];
Expand Down Expand Up @@ -2153,8 +2153,6 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
case HSA_DEVICE_TYPE_DSP:
TmpCharPtr = "DSP";
break;
default:
TmpCharPtr = "Unknown";
}
Info.add("Device Type", TmpCharPtr);
}
Expand Down

0 comments on commit 2e3c6c3

Please sign in to comment.