[polly] r329328 - Silence msvc warning on isl. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 5 11:30:44 PDT 2018
Author: meinersbur
Date: Thu Apr 5 11:30:44 2018
New Revision: 329328
URL: http://llvm.org/viewvc/llvm-project?rev=329328&view=rev
Log:
Silence msvc warning on isl. NFC.
The warning is:
isl_union_map.c(2041): warning C4221: nonstandard extension used: 'filter_user': cannot be initialized using address of automatic variable 'data'
for the following code (and others)
struct isl_un_op_drop_user_data data = { &isl_set_is_wrapping };
struct isl_un_op_control control = {
.filter = &un_op_filter_drop_user,
.filter_user = &data,
.fn_map = &isl_set_wrapped_domain_map,
};
Modified:
polly/trunk/lib/External/CMakeLists.txt
Modified: polly/trunk/lib/External/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/CMakeLists.txt?rev=329328&r1=329327&r2=329328&view=diff
==============================================================================
--- polly/trunk/lib/External/CMakeLists.txt (original)
+++ polly/trunk/lib/External/CMakeLists.txt Thu Apr 5 11:30:44 2018
@@ -352,6 +352,7 @@ if (MSVC)
-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?)
+ -wd4221 # nonstandard extension used : 'identifier' : cannot be initialized using address of automatic variable
)
if (POLLY_BUNDLED_ISL)
target_compile_options(PollyISL PRIVATE ${DISABLE_WARNING_FLAGS})
More information about the llvm-commits
mailing list