[Openmp-commits] [openmp] 4d5220f - [OpenMP] Fix -Wunused-but-set-parameter in -DLLVM_ENABLE_ASSERTIONS=off builds. NFC

Fangrui Song via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 1 17:55:18 PDT 2021


Author: Fangrui Song
Date: 2021-09-01T17:55:13-07:00
New Revision: 4d5220faf9a646565f5a551ee403672b1dd06b88

URL: https://github.com/llvm/llvm-project/commit/4d5220faf9a646565f5a551ee403672b1dd06b88
DIFF: https://github.com/llvm/llvm-project/commit/4d5220faf9a646565f5a551ee403672b1dd06b88.diff

LOG: [OpenMP] Fix -Wunused-but-set-parameter in -DLLVM_ENABLE_ASSERTIONS=off builds. NFC

Added: 
    

Modified: 
    openmp/libomptarget/src/device.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/src/device.h b/openmp/libomptarget/src/device.h
index 16120537c1f61..572099f966d4b 100644
--- a/openmp/libomptarget/src/device.h
+++ b/openmp/libomptarget/src/device.h
@@ -132,6 +132,7 @@ struct HostDataToTargetTy {
   uint64_t decRefCount(bool UseHoldRefCount) const {
     uint64_t &ThisRefCount = UseHoldRefCount ? HoldRefCount : DynRefCount;
     uint64_t OtherRefCount = UseHoldRefCount ? DynRefCount : HoldRefCount;
+    (void)OtherRefCount;
     if (ThisRefCount != INFRefCount) {
       if (ThisRefCount > 0)
         --ThisRefCount;


        


More information about the Openmp-commits mailing list