mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Enable -Werror=pedantic on torch targets (#130319)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/130319 Approved by: https://github.com/ezyang
This commit is contained in:
@ -392,7 +392,9 @@ function(torch_compile_options libname)
|
||||
-Werror=inconsistent-missing-override
|
||||
-Werror=inconsistent-missing-destructor-override
|
||||
-Werror=unused-function
|
||||
-Werror=unused-variable)
|
||||
-Werror=unused-variable
|
||||
-Werror=pedantic
|
||||
)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
list(APPEND private_compile_options -Werror=unused-but-set-variable)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user