From aebdf00cd060b871c5a1e0c2cf4a333503dd0431 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 7 May 2022 12:18:13 +0300 Subject: [PATCH] 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 --- include/pybind11/detail/smart_holder_poc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/smart_holder_poc.h b/include/pybind11/detail/smart_holder_poc.h index 6825e6451..9794b1b38 100644 --- a/include/pybind11/detail/smart_holder_poc.h +++ b/include/pybind11/detail/smart_holder_poc.h @@ -106,7 +106,7 @@ inline void custom_delete(void *raw_ptr) { template guarded_delete make_guarded_custom_deleter(bool armed_flag) { return guarded_delete(custom_delete, armed_flag); -}; +} template inline bool is_std_default_delete(const std::type_info &rtti_deleter) {