Remove deprecated declaration suppression (#99749)

As https://github.com/pytorch/pytorch/pull/55889 landed a while back

Pull Request resolved: https://github.com/pytorch/pytorch/pull/99749
Approved by: https://github.com/huydhn, https://github.com/kit1980
This commit is contained in:
Nikita Shulga
2023-04-22 06:49:24 +00:00
committed by PyTorch MergeBot
parent a964a3dbed
commit 7749eec8df

View File

@@ -493,9 +493,6 @@ else()
append_filelist("lazy_tensor_ts_sources" LIBTORCH_CMAKE_SRCS)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# TODO: Delete this line once https://github.com/pytorch/pytorch/pull/55889 lands
set_source_files_properties(../torch/csrc/jit/serialization/export.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
# TODO: Delete this when https://github.com/pytorch/pytorch/issues/35026 is fixed
set_source_files_properties(../torch/csrc/autograd/record_function_ops.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
endif()