test std.cfg: Fixed introduced regression.

This commit is contained in:
orbitcowboy 2018-05-30 16:30:00 +02:00
parent 39feb150c0
commit d412c3908f
1 changed files with 5 additions and 5 deletions

View File

@ -3027,7 +3027,7 @@ void uninitvar_strncat(char *Ct, char *S, size_t N)
} }
// errno_t strcat_s(char *restrict dest, rsize_t destsz, const char *restrict src); // since C11 // errno_t strcat_s(char *restrict dest, rsize_t destsz, const char *restrict src); // since C11
errno_t uninitvar_strcat_s(char *Ct, size_t N, char *S) void uninitvar_strcat_s(char *Ct, size_t N, char *S)
{ {
char *ct; char *ct;
char *s; char *s;
@ -3042,15 +3042,15 @@ errno_t uninitvar_strcat_s(char *Ct, size_t N, char *S)
(void)strcat_s(Ct,n,S); (void)strcat_s(Ct,n,S);
// no warning is expected for // no warning is expected for
return strcat_s(Ct,N,S); (void) strcat_s(Ct,N,S);
} }
// errno_t wcscat_s(wchar_t *restrict dest, rsize_t destsz, const wchar_t *restrict src); // since C11 // errno_t wcscat_s(wchar_t *restrict dest, rsize_t destsz, const wchar_t *restrict src); // since C11
errno_t uninitvar_wcscat_s(wchar_t *Ct, rsize_t N, wchar_t *S) void uninitvar_wcscat_s(wchar_t *Ct, size_t N, wchar_t *S)
{ {
wchar_t *ct; wchar_t *ct;
wchar_t *s; wchar_t *s;
rsize_t n; size_t n;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)wcscat_s(ct,n,s); (void)wcscat_s(ct,n,s);
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
@ -3061,7 +3061,7 @@ errno_t uninitvar_wcscat_s(wchar_t *Ct, rsize_t N, wchar_t *S)
(void)wcscat_s(Ct,n,S); (void)wcscat_s(Ct,n,S);
// no warning is expected for // no warning is expected for
return wcscat_s(Ct,N,S); (void) wcscat_s(Ct,N,S);
} }
void uninitvar_strncat_s(char *Ct, size_t N1, char *S, size_t N2) void uninitvar_strncat_s(char *Ct, size_t N1, char *S, size_t N2)