[Openmp-commits] [openmp] [OpenMP][OMPT] Remove unused var in archer (PR #201140)
Jan Patrick Lehr via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jun 2 07:56:32 PDT 2026
https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/201140
Working on enabling the build of OpenMP and Offload in pre-merge checks surfaced this unused var and pre-merge checks run with -Werror.
As I did not see where it should be used, remove the variable to address the warning.
The pre-merge running into the warning as error is https://github.com/llvm/llvm-project/actions/runs/26826349862/job/79094823845?pr=174955
>From b56c0def1cf719251b70174ede6d3ac3d71f3ed2 Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Tue, 2 Jun 2026 09:53:58 -0500
Subject: [PATCH] [OpenMP][OMPT] Remove unused var in archer
Working on enabling the build of OpenMP and Offload in pre-merge checks
surfaced this unused var and pre-merge checks run with -Werror.
As I did not see where it should be used, remove the variable to address
the warning.
---
openmp/tools/archer/ompt-tsan.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/openmp/tools/archer/ompt-tsan.cpp b/openmp/tools/archer/ompt-tsan.cpp
index c315999af4328..66d9cb1ccd196 100644
--- a/openmp/tools/archer/ompt-tsan.cpp
+++ b/openmp/tools/archer/ompt-tsan.cpp
@@ -198,7 +198,6 @@ DECLARE_TSAN_FUNCTION(__tsan_func_exit)
/// Required OMPT inquiry functions.
static ompt_get_parallel_info_t ompt_get_parallel_info;
-static ompt_get_thread_data_t ompt_get_thread_data;
typedef char ompt_tsan_clockid;
@@ -1171,7 +1170,6 @@ static int ompt_tsan_initialize(ompt_function_lookup_t lookup, int device_num,
}
ompt_get_parallel_info =
(ompt_get_parallel_info_t)lookup("ompt_get_parallel_info");
- ompt_get_thread_data = (ompt_get_thread_data_t)lookup("ompt_get_thread_data");
if (ompt_get_parallel_info == NULL) {
fprintf(stderr, "Could not get inquiry function 'ompt_get_parallel_info', "
More information about the Openmp-commits
mailing list