From 72595baf6f7511480653fc5a3328579b15897eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 12 May 2025 19:14:35 +0200 Subject: [PATCH] Fix #13839 (False positive: warning about readdir, and readdir_r is deprecated) --- cfg/posix.cfg | 1 - test/cfg/posix.c | 1 - 2 files changed, 2 deletions(-) diff --git a/cfg/posix.cfg b/cfg/posix.cfg index e74506c98f8..751142bacc1 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -4095,7 +4095,6 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. diff --git a/test/cfg/posix.c b/test/cfg/posix.c index af9f68ba4f0..a8075b21bcd 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -991,7 +991,6 @@ void nullPointer(char *p, int fd, pthread_mutex_t mutex) mkdir(p, 0); getcwd(0, 0); // cppcheck-suppress nullPointer - // cppcheck-suppress readdirCalled readdir(0); // cppcheck-suppress nullPointer // cppcheck-suppress utimeCalled