[Openmp-commits] [openmp] [OpenMP][OMPT] Fix warning : extra tokens at end of #endif directive (PR #216279)

Amilendra Kodithuwakku via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 14 01:46:30 PDT 2026


https://github.com/amilendra created https://github.com/llvm/llvm-project/pull/216279

None

>From 724b300b4a9ec9803a87006967eca793253e001f Mon Sep 17 00:00:00 2001
From: Amilendra Kodithuwakku <amilendra.kodithuwakku at arm.com>
Date: Fri, 14 Aug 2026 09:14:04 +0100
Subject: [PATCH] [OpenMP][OMPT] Fix warning : extra tokens at end of #endif
 directive

---
 openmp/runtime/src/include/omp-tools.h.var | 2 +-
 openmp/runtime/src/include/omp.h.var       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openmp/runtime/src/include/omp-tools.h.var b/openmp/runtime/src/include/omp-tools.h.var
index 88031930a279a..3f1ff5997a0ac 100644
--- a/openmp/runtime/src/include/omp-tools.h.var
+++ b/openmp/runtime/src/include/omp-tools.h.var
@@ -318,7 +318,7 @@ typedef enum omp_control_tool_t {
   omp_control_tool_flush              = 3,
   omp_control_tool_end                = 4
 } omp_control_tool_t;
-#endif OMPCONTROLENUM
+#endif /* OMPCONTROLENUM */
 
 typedef enum ompt_thread_t {
   ompt_thread_initial                 = 1,
diff --git a/openmp/runtime/src/include/omp.h.var b/openmp/runtime/src/include/omp.h.var
index f568a952350c8..edea72235f8e4 100644
--- a/openmp/runtime/src/include/omp.h.var
+++ b/openmp/runtime/src/include/omp.h.var
@@ -328,7 +328,7 @@
         omp_control_tool_flush = 3,
         omp_control_tool_end = 4
     } omp_control_tool_t;
-#endif OMPCONTROLENUM
+#endif /* OMPCONTROLENUM */
 
     extern int __KAI_KMPC_CONVENTION omp_control_tool(int, int, void*);
 



More information about the Openmp-commits mailing list