From 20af20d47448ce2d5df980630fe172e91bfe974f Mon Sep 17 00:00:00 2001 From: JP Lehr Date: Sun, 12 Oct 2025 16:52:33 +0200 Subject: [PATCH] [Offload] Silence warning via maybe unused (NFC) --- offload/libomptarget/omptarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offload/libomptarget/omptarget.cpp b/offload/libomptarget/omptarget.cpp index a1950cbb62908..69725e77bae00 100644 --- a/offload/libomptarget/omptarget.cpp +++ b/offload/libomptarget/omptarget.cpp @@ -757,7 +757,7 @@ int processAttachEntries(DeviceTy &Device, AttachInfoTy &AttachInfo, if (!AttachInfo.NewAllocations.empty()) { DP("Tracked %u total new allocations:\n", (unsigned)AttachInfo.NewAllocations.size()); - for (const auto &Alloc : AttachInfo.NewAllocations) { + for ([[maybe_unused]] const auto &Alloc : AttachInfo.NewAllocations) { DP(" Host ptr: " DPxMOD ", Size: %" PRId64 " bytes\n", DPxPTR(Alloc.first), Alloc.second); }