Remove -Wno-error=pedantic from CMake (#133074)

The codebase is largely clean so that we can turn it on.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133074
Approved by: https://github.com/ezyang
This commit is contained in:
cyy 2024-08-10 13:11:21 +00:00 committed by PyTorch MergeBot
parent b9922f7a5a
commit 32be3e942c

View File

@ -1034,7 +1034,6 @@ if(NOT MSVC)
endif()
endif()
append_cxx_flag_if_supported("-Wno-error=pedantic" CMAKE_CXX_FLAGS)
append_cxx_flag_if_supported("-Wno-error=old-style-cast" CMAKE_CXX_FLAGS)
append_cxx_flag_if_supported("-Wconstant-conversion" CMAKE_CXX_FLAGS)
append_cxx_flag_if_supported("-Wno-invalid-partial-specialization"