Skip to content

Conversation

jplehr
Copy link
Contributor

@jplehr jplehr commented Oct 12, 2025

No description provided.

@jplehr jplehr requested a review from jhuber6 October 12, 2025 14:55
@llvmbot
Copy link
Member

llvmbot commented Oct 12, 2025

@llvm/pr-subscribers-offload

Author: Jan Patrick Lehr (jplehr)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/163076.diff

1 Files Affected:

  • (modified) offload/libomptarget/omptarget.cpp (+1-1)
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);
     }

@jplehr jplehr merged commit 6eef045 into llvm:main Oct 12, 2025
12 checks passed
@jplehr jplehr deleted the nfc/silence-warning-via-maybe-unused branch October 12, 2025 15:28
DharuniRAcharya pushed a commit to DharuniRAcharya/llvm-project that referenced this pull request Oct 13, 2025
akadutta pushed a commit to akadutta/llvm-project that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants