Skip to content

Commit aebdf00

Browse files
authored
Fix "extra ';' outside of a function" warning (#3929)
Fix the following warning seen with clang: include/pybind11/detail/smart_holder_poc.h:109:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent 72f51e1 commit aebdf00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/smart_holder_poc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ inline void custom_delete(void *raw_ptr) {
106106
template <typename T, typename D>
107107
guarded_delete make_guarded_custom_deleter(bool armed_flag) {
108108
return guarded_delete(custom_delete<T, D>, armed_flag);
109-
};
109+
}
110110

111111
template <typename T>
112112
inline bool is_std_default_delete(const std::type_info &rtti_deleter) {

0 commit comments

Comments
 (0)