Skip to content

Commit fc1c57f

Browse files
committed
Add semicolons to deprecated PYBIND11_OVERLOAD macros to match original behavior
1 parent 2b7c973 commit fc1c57f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,7 @@ PYBIND11_NAMESPACE_END(detail)
22572257
do { \
22582258
pybind11::detail::PYBIND11_OVERLOAD_deprecated(); \
22592259
PYBIND11_OVERRIDE_PURE_NAME(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), name, fn, __VA_ARGS__); \
2260-
} while (false)
2260+
} while (false);
22612261
#define PYBIND11_OVERLOAD(ret_type, cname, fn, ...) \
22622262
do { \
22632263
pybind11::detail::PYBIND11_OVERLOAD_deprecated(); \
@@ -2267,7 +2267,7 @@ PYBIND11_NAMESPACE_END(detail)
22672267
do { \
22682268
pybind11::detail::PYBIND11_OVERLOAD_deprecated(); \
22692269
PYBIND11_OVERRIDE_PURE(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), fn, __VA_ARGS__); \
2270-
} while (false)
2270+
} while (false);
22712271

22722272
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
22732273

0 commit comments

Comments
 (0)