In file included from /in/driver/main.c:9:
/in/dlist.h:81:9: error: implicit declaration of function 'mrand48' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return mrand48()%2;
^
1 error generated.
In file included from /in/dlist.c:5:
/in/dlist.h:81:9: error: implicit declaration of function 'mrand48' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return mrand48()%2;
^
/in/dlist.c:71:5: error: variable 'comp' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
default:
^~~~~~~
/in/dlist.c:78:44: note: uninitialized use occurs here
qsort(array, dl->size, sizeof(dlistNode), comp);
^~~~
/in/dlist.c:56:5: error: variable 'comp' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
default:
^~~~~~~
/in/dlist.c:78:44: note: uninitialized use occurs here
qsort(array, dl->size, sizeof(dlistNode), comp);
^~~~
/in/dlist.c:40:41: note: initialize the variable 'comp' to silence this warning
int (*comp)(const void *, const void *);
^
= NULL
3 errors generated.