This is an automated email from the ASF dual-hosted git repository.
gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 9adb90e3 fix: add using StructType::Equals to fix
`-Woverloaded-virtual` warning (#601)
9adb90e3 is described below
commit 9adb90e3d9da41abd0a34cd3f6e66a4a9404b040
Author: wzhuo <[email protected]>
AuthorDate: Wed Mar 25 20:59:27 2026 +0800
fix: add using StructType::Equals to fix `-Woverloaded-virtual` warning
(#601)
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 bcaccaa1..3c84bc2a 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;