diff --git a/cfg/std.cfg b/cfg/std.cfg index 841f7a1ab..f1635f5be 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -2324,10 +2324,11 @@ 0: + - + false @@ -2342,6 +2343,7 @@ 0: + @@ -2360,10 +2362,11 @@ 0: + - + false @@ -2378,6 +2381,7 @@ 0: + @@ -2394,10 +2398,11 @@ 0: + - + false @@ -2410,11 +2415,12 @@ 0: + - + false @@ -2425,7 +2431,7 @@ - + false @@ -2436,7 +2442,7 @@ - + false diff --git a/test/cfg/std.c b/test/cfg/std.c index 78fd8a189..48d211859 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -2374,3 +2374,93 @@ void uninitvar_memcmp(void) // cppcheck-suppress uninitvar (void)memcmp(s1,s2,n); } + +void uninitvar_memcpy(void) +{ + void *ct; + void *cs; + size_t n; + // cppcheck-suppress uninitvar + (void)memcpy(ct,cs,n); +} + +void uninitvar_wmemcpy(void) +{ + wchar_t *cs; + wchar_t *c; + size_t n; + // cppcheck-suppress uninitvar + (void)wmemcpy(cs,c,n); +} + +void uninitvar_memmove(void) +{ + void *ct; + void *cs; + size_t n; + // cppcheck-suppress uninitvar + (void)memmove(ct,cs,n); +} + +void uninitvar_wmemmove(void) +{ + wchar_t *cs; + wchar_t *c; + size_t n; + // cppcheck-suppress uninitvar + (void)wmemmove(cs,c,n); +} + +void uninitvar_memset(void) +{ + void *s; + int c; + size_t n; + // cppcheck-suppress uninitvar + (void)memset(s,c,n); +} + +void uninitvar_wmemset(void) +{ + wchar_t *cs; + wchar_t c; + size_t n; + // cppcheck-suppress uninitvar + (void)wmemset(cs,c,n); +} + +void uninitvar_mktime(void) +{ + struct tm *tp; + // cppcheck-suppress uninitvar + (void)mktime(tp); + + struct tmx *tpx; + // cppcheck-suppress uninitvar + (void)mkxtime(tpx); +} + +void uninivar_modf(void) +{ + float f1; + float *f2; + // cppcheck-suppress uninitvar + (void)modff(f1,f2); + + double d1; + double *d2; + // cppcheck-suppress uninitvar + (void)modf(d1,d2); + + long double ld1; + long double *ld2; + // cppcheck-suppress uninitvar + (void)modfl(ld1,ld2); +} + +void uninivar_perror(void) +{ + char *string; + // cppcheck-suppress uninitvar + (void)perror(string); +} diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 5937249a0..0a3bace93 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -1715,3 +1715,89 @@ void uninitvar_memcmp(void) // cppcheck-suppress uninitvar (void)std::memcmp(s1,s2,n); } + +void uninitvar_memcpy(void) +{ + void *ct; + void *cs; + size_t n; + // cppcheck-suppress uninitvar + (void)std::memcpy(ct,cs,n); +} + +void uninitvar_wmemcpy(void) +{ + wchar_t *cs; + wchar_t *c; + size_t n; + // cppcheck-suppress uninitvar + (void)std::wmemcpy(cs,c,n); +} + +void uninitvar_memmove(void) +{ + void *ct; + void *cs; + size_t n; + // cppcheck-suppress uninitvar + (void)std::memmove(ct,cs,n); +} + +void uninitvar_wmemmove(void) +{ + wchar_t *cs; + wchar_t *c; + size_t n; + // cppcheck-suppress uninitvar + (void)std::wmemmove(cs,c,n); +} + +void uninitvar_memset(void) +{ + void *s; + int c; + size_t n; + // cppcheck-suppress uninitvar + (void)std::memset(s,c,n); +} + +void uninitvar_wmemset(void) +{ + wchar_t *cs; + wchar_t c; + size_t n; + // cppcheck-suppress uninitvar + (void)std::wmemset(cs,c,n); +} + +void uninitvar_mktime(void) +{ + struct tm *tp; + // cppcheck-suppress uninitvar + (void)std::mktime(tp); +} + +void uninivar_modf(void) +{ + float f1; + float *f2; + // cppcheck-suppress uninitvar + (void)std::modf(f1,f2); + + double d1; + double *d2; + // cppcheck-suppress uninitvar + (void)std::modf(d1,d2); + + long double ld1; + long double *ld2; + // cppcheck-suppress uninitvar + (void)std::modf(ld1,ld2); +} + +void uninivar_perror(void) +{ + char *string; + // cppcheck-suppress uninitvar + (void)std::perror(string); +}