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

Leandro Lupori via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 2 12:12:16 PDT 2023


https://github.com/luporl created https://github.com/llvm/llvm-project/pull/68022

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


>From 25ba1a9829e77c8f8c16868d574e6e86abca1ed2 Mon Sep 17 00:00:00 2001
From: Leandro Lupori <leandro.lupori at linaro.org>
Date: Mon, 2 Oct 2023 18:59:02 +0000
Subject: [PATCH] [OpenMP] Fix -Wc++98-compat-extra-semi warning (NFC)

Compiling OpenMP with LLVM 16 triggers the following warning:
warning: extra ';' outside of a function is incompatible with C++98
---
 openmp/libomptarget/src/interface.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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