diff --git a/cfg/std.cfg b/cfg/std.cfg index ce27cef23..de7db0892 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -4038,10 +4038,10 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun - + false - + false @@ -4052,7 +4052,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun - + false @@ -4106,7 +4106,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun - + false diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index d4a99c6d3..21e6dd310 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -3245,13 +3245,15 @@ void getline() in.close(); } -void stdstring() { +void stdstring() +{ std::string s; // cppcheck-suppress ignoredReturnValue s.size(); } -void stdvector() { +void stdvector() +{ std::vector v; // cppcheck-suppress ignoredReturnValue v.size();