Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 2, 2023
1 parent dc8eba9 commit f915148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8263,7 +8263,7 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1" direction="in">
<arg nr="1">
<not-null/>
<not-uninit/>
<not-bool/>
Expand Down
6 changes: 3 additions & 3 deletions test/cfg/std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ void nullPointer_vfwprintf(FILE *Stream, const wchar_t *Format, va_list Arg)

void *bufferAccessOutOfBounds_memchr(const void *s, int c, size_t n)
{
const char buf[42]={0};
char buf[42]={0};
(void)std::memchr(buf,c,42);
// cppcheck-suppress bufferAccessOutOfBounds
(void)std::memchr(buf,c,43);
Expand Down Expand Up @@ -3581,7 +3581,7 @@ void uninivar_wcspbrk(void)

void uninivar_wcsncpy(void)
{
const wchar_t *cs;
wchar_t *cs;
const wchar_t *ct;
size_t n;
// cppcheck-suppress uninitvar
Expand Down Expand Up @@ -4062,7 +4062,7 @@ void uninitvar_system(void)

#ifndef __STDC_NO_THREADS__

void nullPointer_mtx_destroy(const mtx_t *mutex )
void nullPointer_mtx_destroy(mtx_t *mutex )
{
// cppcheck-suppress nullPointer
mtx_destroy(nullptr);
Expand Down

0 comments on commit f915148

Please sign in to comment.