diff options
| author | Jan Patrick Lehr <JanPatrick.Lehr@amd.com> | 2025-10-12 17:28:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-12 17:28:46 +0200 |
| commit | 6eef045365d825a7bdbd2bb89a61fa603fdcc7ea (patch) | |
| tree | 270cf6720a87ea254abf1417c60916c6d1a540b4 /offload | |
| parent | 1fde14bc7f69aeb874dd69c5bb3fa43b771d67cc (diff) | |
| download | llvm-6eef045365d825a7bdbd2bb89a61fa603fdcc7ea.tar.gz llvm-6eef045365d825a7bdbd2bb89a61fa603fdcc7ea.tar.bz2 llvm-6eef045365d825a7bdbd2bb89a61fa603fdcc7ea.zip | |
[Offload] Silence warning via maybe unused (NFC) (#163076)
Diffstat (limited to 'offload')
| -rw-r--r-- | offload/libomptarget/omptarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/offload/libomptarget/omptarget.cpp b/offload/libomptarget/omptarget.cpp index a1950cbb6290..69725e77bae0 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); } |
