std.cfg: Do not take the return value of std::locale::global() into account.

This commit is contained in:
orbitcowboy 2018-05-30 16:04:40 +02:00
parent 7681bbf227
commit ef82477d11
2 changed files with 7 additions and 2 deletions

View File

@ -4898,9 +4898,8 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<noreturn>false</noreturn>
<leak-ignore/>
</function>
<!-- static std::locale std::locale::global( const locale& loc ); -->
<!-- static std::locale std::locale::global( const std::locale& loc ); -->
<function name="std::locale::global">
<use-retval/>
<returnValue type="struct std::locale"/>
<noreturn>false</noreturn>
<leak-ignore/>

View File

@ -3071,6 +3071,12 @@ void ignoredReturnValue_string_compare(std::string teststr, std::wstring testwst
testwstr.compare(L"wtest");
}
void ignoredReturnValue_locale_global(const std::locale& loc)
{
// no ignoredReturnValue shall be shown for
std::locale::global(loc);
}
void ignoredReturnValue_make_pair()
{
// cppcheck-suppress ignoredReturnValue