[Openmp-commits] [openmp] 93fe84d - [libomptarget][nfc] Squash unused variable warning
Jon Chesterfield via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jul 26 01:54:39 PDT 2021
Author: Jon Chesterfield
Date: 2021-07-26T09:54:31+01:00
New Revision: 93fe84d32fea8e1213bf7207b45e66667d3217f3
URL: https://github.com/llvm/llvm-project/commit/93fe84d32fea8e1213bf7207b45e66667d3217f3
DIFF: https://github.com/llvm/llvm-project/commit/93fe84d32fea8e1213bf7207b45e66667d3217f3.diff
LOG: [libomptarget][nfc] Squash unused variable warning
Suppress only current warning on openmp-clang-x86_64-linux-debian
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D106777
Added:
Modified:
openmp/libomptarget/src/device.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/src/device.cpp b/openmp/libomptarget/src/device.cpp
index fbbb3970f3e47..380ee22a9fef2 100644
--- a/openmp/libomptarget/src/device.cpp
+++ b/openmp/libomptarget/src/device.cpp
@@ -90,6 +90,7 @@ int DeviceTy::associatePtr(void *HstPtrBegin, void *TgtPtrBegin, int64_t Size) {
DPxPTR(newEntry.HstPtrBase), DPxPTR(newEntry.HstPtrBegin),
DPxPTR(newEntry.HstPtrEnd), DPxPTR(newEntry.TgtPtrBegin),
newEntry.refCountToStr().c_str());
+ (void)newEntry;
DataMapMtx.unlock();
More information about the Openmp-commits
mailing list