[Openmp-commits] [openmp] 5833a9e - [OpenMP] Fix -Wc++98-compat-extra-semi warning (NFC) (#68022)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 2 12:43:06 PDT 2023


Author: Leandro Lupori
Date: 2023-10-02T16:43:02-03:00
New Revision: 5833a9e99adae80b60127b8e54bd5c291452cfaf

URL: https://github.com/llvm/llvm-project/commit/5833a9e99adae80b60127b8e54bd5c291452cfaf
DIFF: https://github.com/llvm/llvm-project/commit/5833a9e99adae80b60127b8e54bd5c291452cfaf.diff

LOG: [OpenMP] Fix -Wc++98-compat-extra-semi warning (NFC) (#68022)

Compiling OpenMP with LLVM 16 triggers the following warning:
warning: extra ';' outside of a function is incompatible with C++98

Added: 
    

Modified: 
    openmp/libomptarget/src/interface.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/src/interface.cpp b/openmp/libomptarget/src/interface.cpp
index 5f21b16b3fbfb1e..0b4a393405a4fca 100644
--- a/openmp/libomptarget/src/interface.cpp
+++ b/openmp/libomptarget/src/interface.cpp
@@ -358,7 +358,7 @@ EXTERN int __tgt_activate_record_replay(int64_t DeviceId, uint64_t MemorySize,
   assert(Rc == OFFLOAD_SUCCESS &&
          "__tgt_activate_record_replay unexpected failure!");
   return OMP_TGT_SUCCESS;
-};
+}
 
 /// Implements a target kernel entry that replays a pre-recorded kernel.
 /// \param Loc Source location associated with this target region (unused).


        


More information about the Openmp-commits mailing list