From e030479aae53cb939ffe1436c88d4c8d299c8886 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 7 Nov 2024 12:36:16 +0200 Subject: [PATCH] lint fixes --- linters/tox.ini | 1 + src/ustreamer/stream.c | 2 +- src/ustreamer/stream.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/linters/tox.ini b/linters/tox.ini index 4416e38a..c4b73c14 100644 --- a/linters/tox.ini +++ b/linters/tox.ini @@ -16,6 +16,7 @@ commands = cppcheck \ --check-level=exhaustive \ --enable=warning,portability,performance,style \ --suppress=assignmentInAssert \ + --suppress=assertWithSideEffect \ --suppress=variableScope \ --inline-suppr \ --library=python \ diff --git a/src/ustreamer/stream.c b/src/ustreamer/stream.c index 49748257..94036e09 100644 --- a/src/ustreamer/stream.c +++ b/src/ustreamer/stream.c @@ -129,7 +129,7 @@ us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc) { return stream; } -void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap) { +void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap) { us_blank_draw(stream->run->blank, "< NO SIGNAL >", cap->width, cap->height); } diff --git a/src/ustreamer/stream.h b/src/ustreamer/stream.h index eca5de66..4be5f51c 100644 --- a/src/ustreamer/stream.h +++ b/src/ustreamer/stream.h @@ -96,7 +96,7 @@ typedef struct { us_stream_s *us_stream_init(us_capture_s *cap, us_encoder_s *enc); -void us_stream_update_blank(us_stream_s *stream, us_capture_s *cap); +void us_stream_update_blank(us_stream_s *stream, const us_capture_s *cap); void us_stream_destroy(us_stream_s *stream); void us_stream_loop(us_stream_s *stream);