Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 10, 2024
1 parent e281749 commit c816fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand All @@ -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 <typename F, FMT_ENABLE_IF(sizeof(F::_IO_read_ptr) != 0)>
static auto get_file(F* f, int) -> glibc_file<F> {
Expand Down

0 comments on commit c816fa6

Please sign in to comment.