Skip to content

Commit 24f0f3b

Browse files
author
Roman Dubtsov
committed
gtest: disable icc unsued variable warnings
Allows building with MKLDNN_WERROR=on because this fixes warning #2415: variable "mkldnn::gtest_SimpleSmall_NCHWdeconvolution_test_float_dummy_" of static storage duration was declared but never referenced
1 parent 3d343bc commit 24f0f3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ elseif(WIN32 AND NOT MINGW)
5151
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
5252
# 1478, 1786: deprecated functions
5353
append(CMAKE_TEST_CCXX_NOWARN_FLAGS "/Qdiag-disable:1478 /Qdiag-disable:1786")
54+
# 2415: unused variable
55+
append(CMAKE_TEST_CCXX_NOWARN_FLAGS "/Qdiag-disable:2415")
5456
else()
5557
# c4244: conversion with possible loss of data
5658
# c4996: unsafe / deprecated functions

0 commit comments

Comments
 (0)