lint fixes

This commit is contained in:
Maxim Devaev 2026-01-03 19:21:10 +02:00
parent b2b1989c5b
commit 903bc45bee
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ void us_encoder_open(us_encoder_s *enc, us_capture_s *cap) {
} else { } else {
US_LOG_INFO("Switching to CPU encoder: the input format is not (M)JPEG ..."); US_LOG_INFO("Switching to CPU encoder: the input format is not (M)JPEG ...");
type = US_ENCODER_TYPE_CPU; type = US_ENCODER_TYPE_CPU;
quality = cap->jpeg_quality; quality = cap->jpeg_quality; // cppcheck-suppress redundantAssignment
} }
} else if (type == US_ENCODER_TYPE_M2M_VIDEO || type == US_ENCODER_TYPE_M2M_IMAGE) { } else if (type == US_ENCODER_TYPE_M2M_VIDEO || type == US_ENCODER_TYPE_M2M_IMAGE) {

View File

@ -242,7 +242,7 @@ static void _main_loop(void) {
us_drm_destroy(drm); us_drm_destroy(drm);
} }
static void *_follower_thread(void *v_unix_follow) { static void *_follower_thread(void *v_unix_follow) { // cppcheck-suppress constParameterCallback
US_THREAD_SETTLE("follower"); US_THREAD_SETTLE("follower");
const char *path = v_unix_follow; const char *path = v_unix_follow;
assert(path != NULL); assert(path != NULL);