From c816fa67519c32653fca5a6bc3fdfe5d0cd341b9 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 10 Mar 2024 10:27:42 -0700 Subject: [PATCH] Fix a warning --- test/scan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/scan.h b/test/scan.h index 7e3400432bc3..15a80356e9c7 100644 --- a/test/scan.h +++ b/test/scan.h @@ -142,7 +142,7 @@ class scan_buffer { using scan_iterator = scan_buffer::iterator; using scan_sentinel = scan_buffer::sentinel; -class string_scan_buffer : public scan_buffer { +class string_scan_buffer final : public scan_buffer { private: void consume() override {} @@ -151,7 +151,7 @@ class string_scan_buffer : public scan_buffer { : scan_buffer(s.begin(), s.end(), true) {} }; -class file_scan_buffer : public scan_buffer { +class file_scan_buffer final : public scan_buffer { private: template static auto get_file(F* f, int) -> glibc_file {