[OpenMP] Remove unused variables from libomp code
authorJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 15 Jun 2021 07:17:26 +0000 (09:17 +0200)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Wed, 16 Jun 2021 07:33:46 +0000 (09:33 +0200)
commitcff215565e9351511d805f72e62803718be6aaa4
tree4ecfcaf3ed82c821dc8416d6180a64cb84d648af
parent308f6a5245a249e08efbdaa73b6cc6e693e0185f
[OpenMP] Remove unused variables from libomp code

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

Two variables have some use:
`poll_count` is used by the KMP_BLOCKING macro only 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.

Differential Revision: https://reviews.llvm.org/D104303
openmp/runtime/cmake/LibompHandleFlags.cmake
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