Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
68211d41
Unverified
Commit
68211d41
authored
Feb 17, 2023
by
Henry Schreiner
Committed by
GitHub
Feb 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: nicer stack level for warning (#4516)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
parent
6a5e6007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
pybind11/setup_helpers.py
+1
-1
No files found.
pybind11/setup_helpers.py
View file @
68211d41
...
@@ -175,7 +175,7 @@ class Pybind11Extension(_Extension): # type: ignore[misc]
...
@@ -175,7 +175,7 @@ class Pybind11Extension(_Extension): # type: ignore[misc]
def
cxx_std
(
self
,
level
:
int
)
->
None
:
def
cxx_std
(
self
,
level
:
int
)
->
None
:
if
self
.
_cxx_level
:
if
self
.
_cxx_level
:
warnings
.
warn
(
warnings
.
warn
(
"You cannot safely change the cxx_level after setting it!"
,
stacklevel
=
1
"You cannot safely change the cxx_level after setting it!"
,
stacklevel
=
2
)
)
# MSVC 2015 Update 3 and later only have 14 (and later 17) modes, so
# MSVC 2015 Update 3 and later only have 14 (and later 17) modes, so
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment