We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65370f3 commit e0f2c71Copy full SHA for e0f2c71
tests/test_constants_and_functions.cpp
@@ -54,7 +54,11 @@ int f2(int x) noexcept(true) { return x + 2; }
54
int f3(int x) noexcept(false) { return x + 3; }
55
PYBIND11_WARNING_PUSH
56
PYBIND11_WARNING_DISABLE_GCC("-Wdeprecated")
57
+#if defined(__clang_major__) && __clang_major__ >= 5
58
+PYBIND11_WARNING_DISABLE_CLANG("-Wdeprecated-dynamic-exception-spec")
59
+#else
60
PYBIND11_WARNING_DISABLE_CLANG("-Wdeprecated")
61
+#endif
62
// NOLINTNEXTLINE(modernize-use-noexcept)
63
int f4(int x) throw() { return x + 4; } // Deprecated equivalent to noexcept(true)
64
PYBIND11_WARNING_POP
0 commit comments