Skip to content

Commit 20af20d

Browse files
committed
[Offload] Silence warning via maybe unused (NFC)
1 parent 4bf5ab4 commit 20af20d

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)