std.cfg: Cleanup wrong test case.

This commit is contained in:
orbitcowboy 2021-07-16 14:25:04 +02:00
parent e90a3053d4
commit 9b46f59ff0
1 changed files with 2 additions and 3 deletions

View File

@ -98,13 +98,12 @@ char * overlappingWriteFunction_strncat(char *src, char *dest, const std::size_t
// No warning shall be shown:
(void)strncat(dest, src, 42);
(void)strncat(dest, src, count);
(void)strncat(dest, dest, count);
// cppcheck-suppress overlappingWriteFunction
(void)strncat(dest, dest+1, 2);
char buffer[] = "strncat";
// cppcheck-suppress overlappingWriteFunction
(void)strncat(buffer, buffer + 1, 3);
// TODO-cppcheck-suppress overlappingWriteFunction
return strncat(src, src, count);
return strncat(buffer, buffer + 1, 3);
}
wchar_t * overlappingWriteFunction_wcscpy(wchar_t *src, wchar_t *dest)