From 81bb9c1eb0c37aa7e630c556a71e83c040bc7d62 Mon Sep 17 00:00:00 2001 From: Ben Cumming <bcumming@cscs.ch> Date: Wed, 6 Jul 2016 12:08:32 +0200 Subject: [PATCH] Silence redundant Intel compiler warning Turn off warning about unused template parameter, when the parameter is used for SFINAE tests inside the template parameter list in the json library. --- cmake/CompilerOptions.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/CompilerOptions.cmake b/cmake/CompilerOptions.cmake index e5447d88..167ae048 100644 --- a/cmake/CompilerOptions.cmake +++ b/cmake/CompilerOptions.cmake @@ -12,3 +12,11 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") set(CXXOPT_WALL "${CXXOPT_WALL} -Wno-missing-braces") endif() + +if(${CMAKE_CXX_COMPILER_ID} MATCHES "Intel") + # Disable warning for unused template parameter + # this is raised by a templated function in the json library + + set(CXXOPT_WALL "${CXXOPT_WALL} -wd488") +endif() + -- GitLab