This is an automated email from the ASF dual-hosted git repository.

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0887e4ff exception.hpp: add override qualifier to what() method (#830)
0887e4ff is described below

commit 0887e4ff5800b11f7037cc70807a2609c0de33e5
Author: Even Rouault <[email protected]>
AuthorDate: Sat Dec 6 03:32:13 2025 +0100

    exception.hpp: add override qualifier to what() method (#830)
    
    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 6ff4a01b..dd00ec74 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_;

Reply via email to