diff --git a/cfg/posix.cfg b/cfg/posix.cfg
index 5b2c18f50..3c43eeba0 100644
--- a/cfg/posix.cfg
+++ b/cfg/posix.cfg
@@ -3995,6 +3995,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
false
+
diff --git a/test/cfg/posix.c b/test/cfg/posix.c
index 3b4338e40..719e715b0 100644
--- a/test/cfg/posix.c
+++ b/test/cfg/posix.c
@@ -139,7 +139,7 @@ void nullPointer(char *p, int fd, pthread_mutex_t mutex)
// cppcheck-suppress nullPointer
pthread_mutex_lock(NULL);
// cppcheck-suppress nullPointer
- pthread_mutex_trylock(NULL);
+ (void)pthread_mutex_trylock(NULL);
// cppcheck-suppress nullPointer
pthread_mutex_unlock(NULL);
}
@@ -344,13 +344,13 @@ void uninitvar(int fd)
// cppcheck-suppress uninitvar
pthread_mutex_lock(&mutex1);
// cppcheck-suppress uninitvar
- pthread_mutex_trylock(&mutex2);
+ (void)pthread_mutex_trylock(&mutex2);
// cppcheck-suppress uninitvar
pthread_mutex_unlock(&mutex3);
// after initialization it must be OK to call lock, trylock and unlock for this mutex
pthread_mutex_init(&mutex, NULL);
pthread_mutex_lock(&mutex);
- pthread_mutex_trylock(&mutex);
+ (void)pthread_mutex_trylock(&mutex);
pthread_mutex_unlock(&mutex);
}