std.cfg: Do not take the return value of std::locale::global() into account.
This commit is contained in:
parent
7681bbf227
commit
ef82477d11
|
@ -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/>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue