From 15a3831ba8fd761b273a35f4158b0132c8473907 Mon Sep 17 00:00:00 2001 From: Matthew Cong Date: Thu, 26 Sep 2024 06:14:25 -0700 Subject: [PATCH] Fix unneeded semicolons triggers warnings with pedantic enabled --- include/nanobind/nb_class.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nanobind/nb_class.h b/include/nanobind/nb_class.h index e8da8d54..e1a953fa 100644 --- a/include/nanobind/nb_class.h +++ b/include/nanobind/nb_class.h @@ -283,13 +283,13 @@ inline size_t type_align(handle h) { return detail::nb_type_align(h.ptr()); } inline const std::type_info& type_info(handle h) { return *detail::nb_type_info(h.ptr()); } template inline T &type_supplement(handle h) { return *(T *) detail::nb_type_supplement(h.ptr()); } -inline str type_name(handle h) { return steal(detail::nb_type_name(h.ptr())); }; +inline str type_name(handle h) { return steal(detail::nb_type_name(h.ptr())); } // Low level access to nanobind instance objects inline bool inst_check(handle h) { return type_check(h.type()); } inline str inst_name(handle h) { return steal(detail::nb_inst_name(h.ptr())); -}; +} inline object inst_alloc(handle h) { return steal(detail::nb_inst_alloc((PyTypeObject *) h.ptr())); }