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
e0f2c715
Unverified
Commit
e0f2c715
authored
Mar 26, 2024
by
Henry Schreiner
Committed by
GitHub
Mar 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: hide warning on clang (#5069)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
parent
65370f33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/test_constants_and_functions.cpp
+4
-0
No files found.
tests/test_constants_and_functions.cpp
View file @
e0f2c715
...
@@ -54,7 +54,11 @@ int f2(int x) noexcept(true) { return x + 2; }
...
@@ -54,7 +54,11 @@ int f2(int x) noexcept(true) { return x + 2; }
int
f3
(
int
x
)
noexcept
(
false
)
{
return
x
+
3
;
}
int
f3
(
int
x
)
noexcept
(
false
)
{
return
x
+
3
;
}
PYBIND11_WARNING_PUSH
PYBIND11_WARNING_PUSH
PYBIND11_WARNING_DISABLE_GCC
(
"-Wdeprecated"
)
PYBIND11_WARNING_DISABLE_GCC
(
"-Wdeprecated"
)
#if defined(__clang_major__) && __clang_major__ >= 5
PYBIND11_WARNING_DISABLE_CLANG
(
"-Wdeprecated-dynamic-exception-spec"
)
#else
PYBIND11_WARNING_DISABLE_CLANG
(
"-Wdeprecated"
)
PYBIND11_WARNING_DISABLE_CLANG
(
"-Wdeprecated"
)
#endif
// NOLINTNEXTLINE(modernize-use-noexcept)
// NOLINTNEXTLINE(modernize-use-noexcept)
int
f4
(
int
x
)
throw
()
{
return
x
+
4
;
}
// Deprecated equivalent to noexcept(true)
int
f4
(
int
x
)
throw
()
{
return
x
+
4
;
}
// Deprecated equivalent to noexcept(true)
PYBIND11_WARNING_POP
PYBIND11_WARNING_POP
...
...
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