[OpenMP] Add void casts to silence unused variable warnings

These variables are used only in certain build configurations,
or marked with a todo comment indicating that they should be
used/checked/reported.

Differential Revision: https://reviews.llvm.org/D96582

GitOrigin-RevId: b3d84790faadaff95bd32ae9950205e044f6fce0
5 files changed