mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remove outdated declarations from setup.py (#110660)
`-Wno-deprecated-declarations` should not be needed after Python 2 not supported. Clang issue for `-Wno-missing-braces` was fixed in 2018. Pull Request resolved: https://github.com/pytorch/pytorch/pull/110660 Approved by: https://github.com/huydhn, https://github.com/atalman, https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
c84c86f018
commit
3c4581d613
6
setup.py
6
setup.py
@ -926,16 +926,10 @@ def configure_extension_build():
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-unknown-pragmas",
|
||||
# This is required for Python 2 declarations that are deprecated in 3.
|
||||
"-Wno-deprecated-declarations",
|
||||
# Python 2.6 requires -fno-strict-aliasing, see
|
||||
# http://legacy.python.org/dev/peps/pep-3123/
|
||||
# We also depend on it in our code (even Python 3).
|
||||
"-fno-strict-aliasing",
|
||||
# Clang has an unfixed bug leading to spurious missing
|
||||
# braces warnings, see
|
||||
# https://bugs.llvm.org/show_bug.cgi?id=21629
|
||||
"-Wno-missing-braces",
|
||||
]
|
||||
|
||||
library_dirs.append(lib_path)
|
||||
|
Reference in New Issue
Block a user