From cb0bf5a7137194b35a3399ddb55e0499648f952f Mon Sep 17 00:00:00 2001 From: tinko92 Date: Sun, 27 Oct 2024 19:12:20 +0800 Subject: [PATCH] Add override specifier in MonotoneChainPerfTest to avoid GCC warning. (#1185) --- benchmarks/index/chain/MonotoneChainPerfTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/index/chain/MonotoneChainPerfTest.cpp b/benchmarks/index/chain/MonotoneChainPerfTest.cpp index 2cf4a34c05..d4b7287814 100644 --- a/benchmarks/index/chain/MonotoneChainPerfTest.cpp +++ b/benchmarks/index/chain/MonotoneChainPerfTest.cpp @@ -53,7 +53,7 @@ static void BM_MonotoneChainOverlaps(benchmark::State& state) { struct EmptyOverlapAction : public MonotoneChainOverlapAction { virtual void - overlap(const LineSegment& seg1, const LineSegment& seg2) { + overlap(const LineSegment& seg1, const LineSegment& seg2) override { (void) seg1; (void) seg2; }