Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4445,7 +4445,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="4" direction="in">
<arg nr="4">
<not-null/>
<not-uninit/>
<not-bool/>
Expand Down
5 changes: 5 additions & 0 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3808,6 +3808,11 @@ class TestOther : public TestFixture {
"}\n");
ASSERT_EQUALS("[test.cpp:1]: (style) Parameter 'p' can be declared as pointer to const\n",
errout.str());

check("void f(void *p, size_t nmemb, size_t size, int (*cmp)(const void *, const void *)) {\n"
" qsort(p, nmemb, size, cmp);\n"
"}\n");
ASSERT_EQUALS("", errout.str());
}

void switchRedundantAssignmentTest() {
Expand Down