From 41b3c56e611dfcafa5550da6646c474c879521b0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 17 Apr 2013 10:23:08 +0200 Subject: Disable "operands are evaluated in unspecified order" ICC's remark --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 835eeb5ec..de25c69f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,6 +150,7 @@ if(NOT MSVC) ei_add_cxx_compiler_flag("-fno-check-new") ei_add_cxx_compiler_flag("-fno-common") ei_add_cxx_compiler_flag("-fstrict-aliasing") + ei_add_cxx_compiler_flag("-wd981") # disbale ICC's "operands are evaluated in unspecified order" remark # The -ansi flag must be added last, otherwise it is also used as a linker flag by check_cxx_compiler_flag making it fails # Moreover we should not set both -strict-ansi and -ansi -- cgit v1.2.3