[openmp] Fix enumeration build issue for openmp library
authorRon Lieberman <ron.lieberman@amd.com>
Tue, 9 Aug 2022 10:07:28 +0000 (10:07 +0000)
committerRon Lieberman <ron.lieberman@amd.com>
Tue, 9 Aug 2022 10:25:03 +0000 (10:25 +0000)
commit9ff0cc7e0fa7e99163610d2fcb58e96f3315e343
treea38bcb2b5e8978550fa94537513638ebdccfdea6
parentfc4c1a86f35f3900f67a6af16b416464369793ba
[openmp] Fix enumeration build issue for openmp library

integer value 40962 is outside the valid range of values [0, 31] for this enumeration type [-Wenum-constexpr-conversion]` (Issue #57022)

turn on -Wno-enum-constexpr-conversion to buy some time to fix the more egregious issue in hsa_agent_into_t and hsa_amd_agent_info_t interfaces.

relates to https://reviews.llvm.org/D131307/new/

Differential Revision: https://reviews.llvm.org/D131477
openmp/cmake/HandleOpenMPOptions.cmake
openmp/cmake/config-ix.cmake