From f211450ca289b180126862d38903893c313768c9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 6 Dec 2025 00:26:08 +0100 Subject: [PATCH] exception.hpp: add override qualifier to what() method Enables to build with -Wsuggest-override --- src/nanoarrow/hpp/exception.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanoarrow/hpp/exception.hpp b/src/nanoarrow/hpp/exception.hpp index 6ff4a01b5..dd00ec742 100644 --- a/src/nanoarrow/hpp/exception.hpp +++ b/src/nanoarrow/hpp/exception.hpp @@ -39,7 +39,7 @@ NANOARROW_CXX_NAMESPACE_BEGIN class Exception : public std::exception { public: Exception(const std::string& msg) : msg_(msg) {} - const char* what() const noexcept { return msg_.c_str(); } + const char* what() const noexcept override { return msg_.c_str(); } private: std::string msg_;