Commit f2b36c2e by Dean Moldovan

Fix a couple of warnings

- Conversion warning on clang: 'long' to 'size_t'
- Unused variable warning on MSVC
parent 38d8b8cf
...@@ -135,7 +135,7 @@ void init_issues(py::module &m) { ...@@ -135,7 +135,7 @@ void init_issues(py::module &m) {
try { try {
py::class_<Placeholder>(m2, "Placeholder"); py::class_<Placeholder>(m2, "Placeholder");
throw std::logic_error("Expected an exception!"); throw std::logic_error("Expected an exception!");
} catch (std::runtime_error &e) { } catch (std::runtime_error &) {
/* All good */ /* All good */
} }
} }
...@@ -139,7 +139,7 @@ protected: ...@@ -139,7 +139,7 @@ protected:
const T *it = ptr; const T *it = ptr;
while (*it++ != (T) 0) while (*it++ != (T) 0)
; ;
return it - ptr; return static_cast<size_t>(it - ptr);
} }
const std::type_info **m_types = nullptr; const std::type_info **m_types = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment