Skip to content

Commit 6eef045

Browse files
authored
[Offload] Silence warning via maybe unused (NFC) (llvm#163076)
1 parent 1fde14b commit 6eef045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/libomptarget/omptarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ int processAttachEntries(DeviceTy &Device, AttachInfoTy &AttachInfo,
757757
if (!AttachInfo.NewAllocations.empty()) {
758758
DP("Tracked %u total new allocations:\n",
759759
(unsigned)AttachInfo.NewAllocations.size());
760-
for (const auto &Alloc : AttachInfo.NewAllocations) {
760+
for ([[maybe_unused]] const auto &Alloc : AttachInfo.NewAllocations) {
761761
DP(" Host ptr: " DPxMOD ", Size: %" PRId64 " bytes\n",
762762
DPxPTR(Alloc.first), Alloc.second);
763763
}

0 commit comments

Comments
 (0)