From c0bb064d4e38d11d4df9e0090619c832c1a267a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Tue, 21 Nov 2023 14:22:02 +0100 Subject: [PATCH] tests: unit: util: Fix compliance check warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As code is moved from test.inc to main.c a compliance check is run for the first time on that code. Fixing warnings. Signed-off-by: Krzysztof Chruściński --- tests/unit/util/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/util/main.c b/tests/unit/util/main.c index d5698fc85f5..c1dbca35bdc 100644 --- a/tests/unit/util/main.c +++ b/tests/unit/util/main.c @@ -68,7 +68,7 @@ ZTEST(util, test_COND_CODE_1) { #define TEST_DEFINE_1 1 #define TEST_DEFINE_0 0 /* Test validates that expected code has been injected. Failure would - * be seen in compilation (lack of variable or ununsed variable. + * be seen in compilation (lack of variable or unused variable). */ COND_CODE_1(1, (uint32_t x0 = 1;), (uint32_t y0;)) zassert_true((x0 == 1)); @@ -85,7 +85,7 @@ ZTEST(util, test_COND_CODE_1) { ZTEST(util, test_COND_CODE_0) { /* Test validates that expected code has been injected. Failure would - * be seen in compilation (lack of variable or ununsed variable. + * be seen in compilation (lack of variable or unused variable). */ COND_CODE_0(0, (uint32_t x0 = 1;), (uint32_t y0;)) zassert_true((x0 == 1)); @@ -173,7 +173,7 @@ static int inc_func(bool cleanup) { static int a; - if (cleanup) { + if (cleanup) { a = 1; }