Skip to content

Commit 9adb90e

Browse files
authored
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.
1 parent 7c2cc68 commit 9adb90e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/iceberg/schema.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class ICEBERG_EXPORT Schema : public StructType {
187187
friend bool operator==(const Schema& lhs, const Schema& rhs) { return lhs.Equals(rhs); }
188188

189189
private:
190+
using StructType::Equals;
190191
/// \brief Compare two schemas for equality.
191192
bool Equals(const Schema& other) const;
192193

0 commit comments

Comments
 (0)