[Openmp-commits] [openmp] 110cf87 - [OpenMP][NFC] Silence warning

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 17 15:57:25 PDT 2023


Author: Johannes Doerfert
Date: 2023-04-17T15:57:10-07:00
New Revision: 110cf873add8ae7c34c184d56f7b097683bb4007

URL: https://github.com/llvm/llvm-project/commit/110cf873add8ae7c34c184d56f7b097683bb4007
DIFF: https://github.com/llvm/llvm-project/commit/110cf873add8ae7c34c184d56f7b097683bb4007.diff

LOG: [OpenMP][NFC] Silence warning

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
index 12098c202a74f..982a000ab486c 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
@@ -206,7 +206,7 @@ AsyncInfoWrapperTy::AsyncInfoWrapperTy(GenericDeviceTy &Device,
       AsyncInfoPtr(AsyncInfoPtr ? AsyncInfoPtr : &LocalAsyncInfo) {
   // Mark the success as checked. Otherwise, it would produce an error when
   // re-assigned another error value.
-  !Err;
+  (void)!Err;
 }
 
 Error AsyncInfoWrapperTy::finalize() {


        


More information about the Openmp-commits mailing list