make checkcfg: Try to fix inline suppressions

This commit is contained in:
Daniel Marjamäki 2018-12-14 13:51:03 +01:00
parent 8464085535
commit 9742c1e2ae
1 changed files with 1 additions and 6 deletions

View File

@ -118,11 +118,9 @@ void nullpointer(int value)
fp = 0;
// No FP
fflush(0);
// No FP
// cppcheck-suppress redundantAssignment
fp = freopen(0,"abc",stdin);
fclose(fp);
fp = 0;
fp = NULL;
// cppcheck-suppress nullPointer
fputc(0,0);
// cppcheck-suppress nullPointer
@ -249,14 +247,12 @@ void nullpointer(int value)
void nullpointerMemchr1(char *p, char *s)
{
// cppcheck-suppress uselessAssignmentPtrArg
p = memchr(s, 'p', strlen(s));
(void)p;
}
void nullpointerMemchr2(char *p, char *s)
{
// cppcheck-suppress uselessAssignmentPtrArg
p = memchr(s, 0, strlen(s));
(void)p;
}
@ -265,7 +261,6 @@ void nullPointer_memchr(char *p)
{
char *s = 0;
// cppcheck-suppress nullPointer
// cppcheck-suppress uselessAssignmentPtrArg
p = memchr(s, 0, strlen(s));
(void)p;
}