Fixed checkcfg: test/cfg/std.cpp:2904:error:uninitvar:Uninitialized variable: s
This commit is contained in:
parent
4195cb0842
commit
611eb81302
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue