diff --git a/test/cfg/posix.c b/test/cfg/posix.c index 18c67233f..13ccc64ac 100644 --- a/test/cfg/posix.c +++ b/test/cfg/posix.c @@ -31,6 +31,14 @@ #include #include +int nullPointer_wcsnlen(const wchar_t *s, size_t n) +{ + // cppcheck-suppress nullPointer + (void)wcsnlen(NULL, n); + // No warning is expected + return wcsnlen(s, n); +} + int nullPointer_wcswidth(const wchar_t *s, size_t n) { // cppcheck-suppress nullPointer