From a31118b20ea06e37ecaafd6498efee02548fee04 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Fri, 16 Oct 2026 14:39:04 +0200 Subject: [PATCH 1/4] Update posix.cfg --- cfg/posix.cfg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cfg/posix.cfg b/cfg/posix.cfg index e0de433e1f1..874ca486459 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -4638,7 +4638,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - + @@ -4646,7 +4646,6 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s false - @@ -4658,7 +4657,6 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - From f7af032de02a91f648cbb4078de26832e3cb152b Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Fri, 16 Oct 2026 14:45:42 +0200 Subject: [PATCH 2/4] Update posix.c --- test/cfg/posix.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 82cfd950792..4e1f75e6a09 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -1524,9 +1524,11 @@ void pthread_cond_timedwait_test(pthread_cond_t *cond, pthread_mutex_t *mutex, c void pthread_cond_init_test(pthread_cond_t *cond, const pthread_condattr_t *attr) { - // cppcheck-suppress nullPointer (void)pthread_cond_init(cond, NULL); (void)pthread_cond_init(cond, attr); + pthread_cond_t *condu; + // cppcheck-suppress uninitvar + (void)pthread_cond_init(condu, attr); } void pthread_cond_destroy_test(const pthread_cond_t *cond) @@ -1540,6 +1542,12 @@ void pthread_cleanup_push_test(void (*routine)(void *), void *arg) pthread_cleanup_pop(0); } +void pthread_cleanup_push_test_NULL(void (*routine)(void *)) +{ + pthread_cleanup_push(routine, NULL); + pthread_cleanup_pop(0); +} + void pthread_mutexattr_init_test(pthread_mutexattr_t *attr) { (void)pthread_mutexattr_init(attr); @@ -1606,4 +1614,4 @@ void pthread_define_test() (void)rwlock; PTHREAD_SCOPE_PROCESS; PTHREAD_SCOPE_SYSTEM; -} \ No newline at end of file +} From 491c2474dbd1d5057c74e88b5e3d3fefc39c9e5c Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Fri, 16 Oct 2026 14:46:27 +0200 Subject: [PATCH 3/4] Update posix.cfg --- cfg/posix.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/posix.cfg b/cfg/posix.cfg index 874ca486459..7645ad89fa9 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -4646,6 +4646,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s false + From a76d4652a8bb45a6533f61fd0457c89738dafa11 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Fri, 16 Oct 2026 14:48:30 +0200 Subject: [PATCH 4/4] Update posix.c --- test/cfg/posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 4e1f75e6a09..54a583d39c9 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -1526,9 +1526,9 @@ void pthread_cond_init_test(pthread_cond_t *cond, const pthread_condattr_t *attr { (void)pthread_cond_init(cond, NULL); (void)pthread_cond_init(cond, attr); - pthread_cond_t *condu; + const pthread_condattr_t *uattr; // cppcheck-suppress uninitvar - (void)pthread_cond_init(condu, attr); + (void)pthread_cond_init(cond, uattr); } void pthread_cond_destroy_test(const pthread_cond_t *cond)