Fixed checkcfg: test/cfg/std.cpp:2904:error:uninitvar:Uninitialized variable: s

This commit is contained in:
orbitcowboy 2018-12-23 18:09:55 +01:00
parent 4195cb0842
commit 611eb81302
1 changed files with 1 additions and 1 deletions

View File

@ -2900,7 +2900,7 @@ void uninivar_snprintf(char *S, size_t N, char *Format, int Int)
(void)std::snprintf(S,N,format,Int); // format is uninitialized
// cppcheck-suppress uninitvar
(void)std::snprintf(S,N,Format,i); // i is uninitialized
// TODO cppcheck-suppress uninitvar
// cppcheck-suppress uninitvar
(void)std::snprintf(s,N,Format,Int);
// no warning is expected for