From 6c9695d16c157e9119dcf897266e8643e6565213 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 17 Aug 2023 23:36:53 +0200 Subject: enable misc-*,bugprone-* lints --- test/timer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/timer.cc') diff --git a/test/timer.cc b/test/timer.cc index 6bc783c..5ac169c 100644 --- a/test/timer.cc +++ b/test/timer.cc @@ -12,14 +12,14 @@ int main() { { puts("Sleep 100ms"); - timer::scoped_timer s{t}; + const timer::scoped_timer kS{t}; usleep(100 * 1000); } kShowTime(); { puts("Sleep 500ms"); - timer::scoped_timer s{t}; + const timer::scoped_timer kS{t}; usleep(500 * 1000); } kShowTime(); -- cgit v1.2.3