From 349779cc99824f79c79d6c534af5e71bd9cac91a Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Wed, 7 Sep 2016 14:11:20 +0000 Subject: [PATCH] Disable MSVC warnings on ISL. Disable some Visual C++ warnings on ISL. These are not reported by GCC/Clang in the ISL build system. We do not intend to fix them in the Polly in-tree copy, hence disable these warnings. llvm-svn: 280811 --- polly/lib/External/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/polly/lib/External/CMakeLists.txt b/polly/lib/External/CMakeLists.txt index 2adbd71..fe77e75 100644 --- a/polly/lib/External/CMakeLists.txt +++ b/polly/lib/External/CMakeLists.txt @@ -260,6 +260,17 @@ add_polly_library(PollyISL FORCE_STATIC ${ISL_FILES} ) +if (MSVC) + # Disable common warnings; ideally, they should be fixed upstream + target_compile_options(PollyISL PRIVATE + -wd4018 # 'expression' : signed/unsigned mismatch + -wd4090 # 'operation' : different 'modifier' qualifiers + -wd4200 # nonstandard extension used: zero-sized array in struct/union + -wd4201 # nonstandard extension used: nameless struct/union + -wd4334 # 'operator': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) + ) +endif () + # ISL requires at least C99 to compile. gcc < 5.0 use -std=gnu89 as default. target_enable_c99(PollyISL) -- 2.7.4