From 8cfde8ad3c4a21330d580c45b732d05a5682b234 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 31 Jan 2025 18:52:50 +0300 Subject: [PATCH] [libesl] Coverity 1294491 Identical code for different branches --- libs/esl/src/esl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 4cadde1776..d29926eb5c 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -284,9 +284,12 @@ ESL_DECLARE(int) esl_snprintf(char *buffer, size_t count, const char *fmt, ...) static void null_logger(const char *file, const char *func, int line, int level, const char *fmt, ...) { - if (file && func && line && level && fmt) { - return; - } + (void)file; + (void)func; + (void)line; + (void)level; + (void)fmt; + return; }