As reported by cppcheck:
src/list.c:45:8: style: Redundant initialization for 'data'. The
initialized value is overwritten before it is read.
[redundantInitialization]
data = NULL;
^
src/list.c:43:15: note: data is initialized
void * data = list_pop_front(list);
^
src/list.c:45:8: note: data is overwritten
data = NULL;
^
As reported by cppcheck:
src/degree.c:91:4: warning: %d in format string (no. 2) requires 'int'
but the argument type is 'signed long'. [invalidPrintfArgType_sint]
printf("\r%s Selecting degrees... (%d of %d)",
^
src/degree.c:91:4: warning: %d in format string (no. 3) requires 'int'
but the argument type is 'signed long'. [invalidPrintfArgType_sint]
printf("\r%s Selecting degrees... (%d of %d)",
^
As reported by cppcheck:
src/defi.c:41:7: style: Variable 're' is assigned a value that is never used. [unreadVariable]
re = sscanf(buf, "%ld %ld", &one, &two);
^
As reported by cppcheck:
src/defi.c:18:2: warning: Assignment of function parameter has no
effect outside the function. Did you forget dereferencing it?
[uselessAssignmentPtrArg]
defi = NULL;
^