From: Michael Kruse Date: Wed, 7 Sep 2016 14:11:20 +0000 (+0000) Subject: Disable MSVC warnings on ISL. X-Git-Tag: llvmorg-4.0.0-rc1~10460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=349779cc99824f79c79d6c534af5e71bd9cac91a;p=platform%2Fupstream%2Fllvm.git 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 --- 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)