From 4ce7dc9c0ab7e0f0e17b3479796eda64706fc714 Mon Sep 17 00:00:00 2001 From: Zhuo Wang Date: Tue, 24 Mar 2026 12:05:18 +0800 Subject: [PATCH] Fix -Woverloaded-virtual warning in Schema by adding using declaration Schema::Equals(const Schema&) hides StructType::Equals(const Type&), triggering Clang's -Woverloaded-virtual warning. Add 'using StructType::Equals' to bring the base class overload into scope alongside the Schema-specific one. --- src/iceberg/schema.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/iceberg/schema.h b/src/iceberg/schema.h index bcaccaa15..3c84bc2af 100644 --- a/src/iceberg/schema.h +++ b/src/iceberg/schema.h @@ -187,6 +187,7 @@ class ICEBERG_EXPORT Schema : public StructType { friend bool operator==(const Schema& lhs, const Schema& rhs) { return lhs.Equals(rhs); } private: + using StructType::Equals; /// \brief Compare two schemas for equality. bool Equals(const Schema& other) const;