Too many #ifdef configurations - cppcheck only checks 12 of 223 configurations. Use --force to check all configurations.
Uninitialized variable: dot
if (!dot) {
Either the condition i>k
is redundant, otherwise there is negative array index -2.
hexbuf[15-i] = '0';
Either the condition i>k
is redundant, otherwise there is negative array index -1.
hexbuf[15-i] = x + ((x < 10) ? '0' : 0x37);
XXX found
"SOS", "XXX", "SCI", "CSI", "ST", "OSC", "PM", "APC", "NBS"
XXX found
"XXX", "XXX", "BPH", "NBH", "IND", "NEL", "SSA", "ESA",
XXX found
"XXX", "XXX", "BPH", "NBH", "IND", "NEL", "SSA", "ESA",
Boolean result is used in bitwise operation. Clarify expression with parentheses.
(opts & 2 == 0) ||
The scope of the variable t2
can be reduced.
CHAR t1, t2;
The scope of the variable p
can be reduced.
char *p, *a[4];
The scope of the variable p
can be reduced.
char *p, *a[12];
Variable p
is reassigned a value before the old one has been used.
p = s1;
The scope of the variable c2
can be reduced.
char c1, c2, * s3;
The scope of the variable ch2
can be reduced.
char * p, ch, ch2;
The scope of the variable t1
can be reduced.
register CHAR t1, t2;
The scope of the variable q2
can be reduced.
register char * q2;
The scope of the variable i
can be reduced.
register int i, k;
The scope of the variable x
can be reduced.
int len1 = 0, len2 = 0, i, j, x, ot = t;
The scope of the variable t2
can be reduced.
register CHAR t1, t2;
The scope of the variable b3
can be reduced.
int b3, b4, i, x = 0;
The scope of the variable c
can be reduced.
unsigned char c;
The scope of the variable d
can be reduced.
int d, count = 0;
The scope of the variable b4
can be reduced.
int b3, b4, i, x = 0;
The scope of the variable s3
can be reduced.
char c1, c2, * s3;
The scope of the variable x
can be reduced.
int k, x, len = 0, sign = 0;
The scope of the variable ch
can be reduced.
char * p, ch, ch2;
Local variable q shadows outer variable
int q = 0;
Local variable k shadows outer variable
int k, n, q = 0;
The scope of the variable x
can be reduced.
int k, x, len = 0;
Local variable k shadows outer variable
int k, sofar;
The scope of the variable t1
can be reduced.
CHAR t1, t2;
Local variable q shadows outer variable
int q = 0, done = 0;
Condition 2==0
is always false
(opts & 2 == 0) ||
The scope of the variable x
can be reduced.
int k, x, len = 0, sign = 0;
Local variable q shadows outer variable
int k, n, q = 0;
Suspicious condition (bitwise operator + comparison); Clarify expression with parentheses.
(opts & 2 == 0) ||
The scope of the variable t
can be reduced.
int i, k = 0, x, t;
Condition !q
is always true
if (!q) {
Array index i
is used before limits check.
for (i = 0; src[i] && (i < len-1); i++)
Array index i
is used before limits check.
for (i = 0, j = strlen(dest); src[i] && (i < len-j-1); i++)
The scope of the variable c
can be reduced.
char c, *r = rxresult;
The scope of the variable t
can be reduced.
unsigned int t;
The function ckstrpbrk
is never used.
ckstrpbrk(s1, s2) char * s1, * s2; {
The function ckstrstr
is never used.
ckstrstr(s1, s2) char * s1, * s2; {
The function ckstrrchr
is never used.
ckstrrchr(s,c) char *s, c;
The function ckupper
is never used.
ckupper(s) char *s; {
There are no issues that match your filters.