From 18bb0baacfb199898d8a0b8ef1102c5cd268708f Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 13 Mar 2018 01:44:25 +0100 Subject: [PATCH 1/1] ignore some warnings from intel --- tools/cmake/GCCFlags.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/cmake/GCCFlags.cmake b/tools/cmake/GCCFlags.cmake index 8b4b980a15..c38cac7f3a 100644 --- a/tools/cmake/GCCFlags.cmake +++ b/tools/cmake/GCCFlags.cmake @@ -41,6 +41,13 @@ if(enable_compile_warnings) set(warnCXXFLAGS "${warnCXXFLAGS} -Wno-mismatched-tags -Wno-extern-c-compat") endif() + if (CMAKE_CXX_COMPILER_ID MATCHES "Intel") + # ignore remark #1418: external function definition with no prior declaration + # 3179: deprecated conversion of string literal to char* (should be const char*) + # 191: type qualifier is meaningless on cast type + set(warnCXXFLAGS "${warnCXXFLAGS} -wd1418 -wd191 -wd3179") + endif() + # the one specific to C but refused by C++ set(warnCFLAGS "${warnCFLAGS} -Wmissing-prototypes") -- 2.20.1