This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][amdgpu][nfc] Fix build warnings, drop some headers
ClosedPublic

Authored by JonChesterfield on Jun 25 2021, 8:22 AM.

Details

Summary

Removes stdarg header, drops uses of iostream, fix some format string errors.
Also changes a C style struct to C++ style to avoid a warning from clang/

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.Jun 25 2021, 8:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2021, 8:22 AM
openmp/libomptarget/plugins/amdgpu/impl/internal.h
208

atmi_error_string was a subset of get_error_string

openmp/libomptarget/plugins/amdgpu/impl/system.cpp
13

stringstream is currently used for some formatting, don't need to include iostream to get that

openmp/libomptarget/plugins/amdgpu/impl/utils.cpp
15

hsa includes essentially the same switch as here, but provides some more context on the error meaning, and avoids warnings about missing cases in the switch

JonChesterfield edited the summary of this revision. (Show Details)Jun 25 2021, 5:35 PM
pdhaliwal accepted this revision.Jun 28 2021, 5:37 AM

Looks good! Thanks

This revision is now accepted and ready to land.Jun 28 2021, 5:37 AM
This revision was landed with ongoing or failed builds.Jun 30 2021, 2:23 PM
This revision was automatically updated to reflect the committed changes.