From a36dad918a6d2b4f6bf8d05725a89a9ee6e9f853 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 11 Apr 2018 19:16:55 +0200 Subject: [PATCH] std.cfg: Add std::make_pair() (#1165) --- cfg/std.cfg | 9 +++++++++ test/cfg/std.cpp | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/cfg/std.cfg b/cfg/std.cfg index c6b63d09b..002c784c6 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -6507,6 +6507,15 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun + + + + + false + + + + false diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index cb8143846..1c9406f25 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -3056,6 +3056,12 @@ void ignoredReturnValue_string_compare(std::string teststr, std::wstring testwst testwstr.compare(L"wtest"); } +void ignoredReturnValue_make_pair() +{ + // cppcheck-suppress ignoredReturnValue + std::make_pair(1, 2); +} + void nullPointer_ifstream_read(std::ifstream &f) { // cppcheck-suppress nullPointer