diff options
| author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2019-08-12 12:37:30 +0000 |
|---|---|---|
| committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2019-08-12 12:37:30 +0000 |
| commit | 5eec1a9d324f3380602cd4e4e355347701916659 (patch) | |
| tree | b6e96c83de5b89e8bbbb273c6eacf8860fa6bef8 /openmp/runtime | |
| parent | 182249daee8ad8e12a492c3fa60559275650263a (diff) | |
| download | bcm5719-llvm-5eec1a9d324f3380602cd4e4e355347701916659.tar.gz bcm5719-llvm-5eec1a9d324f3380602cd4e4e355347701916659.zip | |
Cleanup unused variable.
This patch fixes problem raised in post-review comments of the
https://reviews.llvm.org/D65285. Developers of ittnotify confirmed
that dll_path_ptr field of the __itt_global structure is never used
by ittnotify library, so it is safe to remove the dll_path array.
Differential Revision: https://reviews.llvm.org/D65885
llvm-svn: 368559
Diffstat (limited to 'openmp/runtime')
| -rw-r--r-- | openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp index c771ae8ac37..78ab62daeb9 100644 --- a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp +++ b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp @@ -226,8 +226,6 @@ static __itt_api_info api_list[] = { #pragma warning(pop) #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ -static char dll_path[PATH_MAX] = { 0 }; - /* static part descriptor which handles. all notification api attributes. */ __itt_global _N_(_ittapi_global) = { ITT_MAGIC, /* identification info */ @@ -238,7 +236,7 @@ __itt_global _N_(_ittapi_global) = { MUTEX_INITIALIZER, /* mutex */ NULL, /* dynamic library handle */ NULL, /* error_handler */ - (const char**)&dll_path, /* dll_path_ptr */ + NULL, /* dll_path_ptr */ (__itt_api_info*)&api_list, /* api_list_ptr */ NULL, /* next __itt_global */ NULL, /* thread_list */ |

