[Openmp-commits] [openmp] c5bbf40 - [openmp] Remove extra '; ' outside of function
Alexandre Ganea via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 17 04:24:05 PST 2024
Author: Alexandre Ganea
Date: 2024-01-17T07:23:56-05:00
New Revision: c5bbf40d9836409837696e4d60e94ed2ad3d6a32
URL: https://github.com/llvm/llvm-project/commit/c5bbf40d9836409837696e4d60e94ed2ad3d6a32
DIFF: https://github.com/llvm/llvm-project/commit/c5bbf40d9836409837696e4d60e94ed2ad3d6a32.diff
LOG: [openmp] Remove extra ';' outside of function
Fixes:
```
[4038/11058] Building CXX object projects/openmp/libomptarget/src/CMakeFiles/omptarget.dir/OpenMP/InteropAPI.cpp.o
/home/aganea/llvm-project/openmp/libomptarget/src/OpenMP/InteropAPI.cpp:202:2: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
};
^
1 warning generated.
```
Added:
Modified:
openmp/libomptarget/src/OpenMP/InteropAPI.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/src/OpenMP/InteropAPI.cpp b/openmp/libomptarget/src/OpenMP/InteropAPI.cpp
index c96ce2ce60b758..1a995cde7816e1 100644
--- a/openmp/libomptarget/src/OpenMP/InteropAPI.cpp
+++ b/openmp/libomptarget/src/OpenMP/InteropAPI.cpp
@@ -199,7 +199,7 @@ static const char *copyErrorString(llvm::Error &&Err) {
char *UsrMsg = reinterpret_cast<char *>(malloc(ErrMsg.size() + 1));
strcpy(UsrMsg, ErrMsg.c_str());
return UsrMsg;
-};
+}
extern "C" {
More information about the Openmp-commits
mailing list