mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 05:39:53 +00:00
Fix a couple of warnings
- Conversion warning on clang: 'long' to 'size_t' - Unused variable warning on MSVC
This commit is contained in:
@@ -135,7 +135,7 @@ void init_issues(py::module &m) {
|
||||
try {
|
||||
py::class_<Placeholder>(m2, "Placeholder");
|
||||
throw std::logic_error("Expected an exception!");
|
||||
} catch (std::runtime_error &e) {
|
||||
} catch (std::runtime_error &) {
|
||||
/* All good */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user