Do not force -Werror on Pooling.cpp

As new versions of compilers are likely find new types of violation s as shown in https://github.com/pytorch/pytorch/issues/105728
This commit is contained in:
Nikita Shulga
2023-07-28 07:08:59 -07:00
committed by GitHub
parent cb6c3cbc91
commit bb0b283e5a

View File

@ -530,8 +530,6 @@ endif()
# Required workaround for LLVM 9 includes.
if(NOT MSVC)
set_source_files_properties(${TORCH_SRC_DIR}/csrc/jit/tensorexpr/llvm_jit.cpp PROPERTIES COMPILE_FLAGS -Wno-noexcept-type)
# Force -Werror on several files
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/../aten/src/ATen/native/mkldnn/Pooling.cpp PROPERTIES COMPILE_FLAGS "-Werror")
endif()
# Disable certain warnings for GCC-9.X
if(CMAKE_COMPILER_IS_GNUCXX AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0.0))