From 6bd4ef59c0e73e7b675d579e50afafd2ff3d080c Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 23 Oct 2023 22:11:36 -0400 Subject: [PATCH] avoid duplicate increment of slc (#239) Clang reported "warning: variable 'slc' is incremented both in the loop header and in the loop body". --- src/ustreamer/stream.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ustreamer/stream.c b/src/ustreamer/stream.c index 73f2521..92cc661 100644 --- a/src/ustreamer/stream.c +++ b/src/ustreamer/stream.c @@ -127,7 +127,6 @@ void us_stream_loop(us_stream_s *stream) { unsigned slc = 0; for (; slc < 10 && !atomic_load(&_RUN(stop)) && !us_stream_has_clients(stream); ++slc) { usleep(100000); - ++slc; } h264_force_key = (slc == 10); }