aboutsummaryrefslogtreecommitdiff
path: root/openmp/cmake
diff options
context:
space:
mode:
authorAlexandre Ganea <alex_toresh@yahoo.fr>2024-01-23 08:51:04 -0500
committerAlexandre Ganea <alex_toresh@yahoo.fr>2024-01-23 08:51:12 -0500
commit94f960925b7f609636fc2ffd83053814d5e45ed1 (patch)
tree0813924f54ad91c6721a164cd887ea8f6427e4a4 /openmp/cmake
parent16df714e77e8d31619445e5f6d87d89da962eec4 (diff)
downloadllvm-94f960925b7f609636fc2ffd83053814d5e45ed1.zip
llvm-94f960925b7f609636fc2ffd83053814d5e45ed1.tar.gz
llvm-94f960925b7f609636fc2ffd83053814d5e45ed1.tar.bz2
Revert 10f3296dd7d74c975f208a8569221dc8f96d1db1 - [openmp] Fix warnings when building on Windows with latest MSVC or Clang ToT (#77853)
It broke the AMDGPU buildbot: https://lab.llvm.org/buildbot/#/builders/193/builds/45378
Diffstat (limited to 'openmp/cmake')
-rw-r--r--openmp/cmake/HandleOpenMPOptions.cmake9
1 files changed, 0 insertions, 9 deletions
diff --git a/openmp/cmake/HandleOpenMPOptions.cmake b/openmp/cmake/HandleOpenMPOptions.cmake
index 201aeab..b0fd0b7 100644
--- a/openmp/cmake/HandleOpenMPOptions.cmake
+++ b/openmp/cmake/HandleOpenMPOptions.cmake
@@ -41,12 +41,3 @@ append_if(OPENMP_HAVE_WMAYBE_UNINITIALIZED_FLAG "-Wno-maybe-uninitialized" CMAKE
append_if(OPENMP_HAVE_NO_SEMANTIC_INTERPOSITION "-fno-semantic-interposition" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
append_if(OPENMP_HAVE_FUNCTION_SECTIONS "-ffunction-section" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
append_if(OPENMP_HAVE_DATA_SECTIONS "-fdata-sections" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
-
-if (MSVC)
- # Disable "warning C4201: nonstandard extension used: nameless struct/union"
- append("-wd4201" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
-
- # Disable "warning C4190: '__kmpc_atomic_cmplx8_rd' has C-linkage specified, but returns
- # UDT '__kmp_cmplx64_t' which is incompatible with C"
- append("-wd4190" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
-endif()