make checkcfg: Try to fix inline suppressions
This commit is contained in:
parent
8464085535
commit
9742c1e2ae
|
@ -118,11 +118,9 @@ void nullpointer(int value)
|
||||||
fp = 0;
|
fp = 0;
|
||||||
// No FP
|
// No FP
|
||||||
fflush(0);
|
fflush(0);
|
||||||
// No FP
|
|
||||||
// cppcheck-suppress redundantAssignment
|
|
||||||
fp = freopen(0,"abc",stdin);
|
fp = freopen(0,"abc",stdin);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
fp = 0;
|
fp = NULL;
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
fputc(0,0);
|
fputc(0,0);
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
|
@ -249,14 +247,12 @@ void nullpointer(int value)
|
||||||
|
|
||||||
void nullpointerMemchr1(char *p, char *s)
|
void nullpointerMemchr1(char *p, char *s)
|
||||||
{
|
{
|
||||||
// cppcheck-suppress uselessAssignmentPtrArg
|
|
||||||
p = memchr(s, 'p', strlen(s));
|
p = memchr(s, 'p', strlen(s));
|
||||||
(void)p;
|
(void)p;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nullpointerMemchr2(char *p, char *s)
|
void nullpointerMemchr2(char *p, char *s)
|
||||||
{
|
{
|
||||||
// cppcheck-suppress uselessAssignmentPtrArg
|
|
||||||
p = memchr(s, 0, strlen(s));
|
p = memchr(s, 0, strlen(s));
|
||||||
(void)p;
|
(void)p;
|
||||||
}
|
}
|
||||||
|
@ -265,7 +261,6 @@ void nullPointer_memchr(char *p)
|
||||||
{
|
{
|
||||||
char *s = 0;
|
char *s = 0;
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
// cppcheck-suppress uselessAssignmentPtrArg
|
|
||||||
p = memchr(s, 0, strlen(s));
|
p = memchr(s, 0, strlen(s));
|
||||||
(void)p;
|
(void)p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue