[Openmp-commits] [PATCH] D104303: [OpenMP] Remove unused variables from libomp code

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 15 08:20:33 PDT 2021


protze.joachim created this revision.
protze.joachim added reviewers: jlpeyton, AndreyChurbanov.
protze.joachim added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
protze.joachim requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

Several variables are left unused as a result of different patches removing their use.

Two variables have some use:
`poll_count` is used by KMP_BLOCKING under certain conditions. Adding (void) to tell the compiler to ignore the unused variable.

`padding` is a dummy stack allocation with no intent to be used. Also adding (void) to make the compiler ignore the unused variable.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104303

Files:
  openmp/runtime/src/kmp_affinity.cpp
  openmp/runtime/src/kmp_csupport.cpp
  openmp/runtime/src/kmp_ftn_entry.h
  openmp/runtime/src/kmp_lock.cpp
  openmp/runtime/src/kmp_runtime.cpp
  openmp/runtime/src/kmp_wait_release.h
  openmp/runtime/src/z_Linux_util.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104303.352148.patch
Type: text/x-patch
Size: 4808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210615/927e4199/attachment.bin>


More information about the Openmp-commits mailing list