fix: typo in Windows C++17 support (#2507)

This commit is contained in:
Henry Schreiner 2020-09-18 11:15:36 -04:00 committed by GitHub
parent 8fa70e7483
commit 87828c7ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ class Pybind11Extension(_Extension):
if PY2:
if level >= 17:
self.extra_compile_args.append("/wd503" if WIN else "-Wno-register")
self.extra_compile_args.append("/wd5033" if WIN else "-Wno-register")
elif not WIN and level >= 14:
self.extra_compile_args.append("-Wno-deprecated-register")