From: Augustin Degomme Date: Tue, 13 Mar 2018 00:44:25 +0000 (+0100) Subject: ignore some warnings from intel X-Git-Tag: v3.19~78^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/18bb0baacfb199898d8a0b8ef1102c5cd268708f ignore some warnings from intel --- 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")