Record Detail

Compile Error

/in/correct/dlist.c:121:49: error: incompatible function pointer types passing 'int (*const)(void *, void *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Werror,-Wincompatible-function-pointer-types]
    qsort(temp, thisList->length, sizeof(node), cmp[thisList->type-1][method-1]);
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:828:20: note: passing argument to parameter '__compar' here
                   __compar_fn_t __compar) __nonnull ((1, 4));
                                 ^
/in/correct/dlist.c:102:11: error: unused variable 'tail' [-Werror,-Wunused-variable]
    node* tail;
          ^
/in/correct/dlist.c:103:11: error: unused variable 'n' [-Werror,-Wunused-variable]
    node* n;
          ^
/in/correct/dlist.c:104:11: error: unused variable 'prev' [-Werror,-Wunused-variable]
    node* prev;
          ^
/in/correct/dlist.c:105:16: error: unused variable 't' [-Werror,-Wunused-variable]
    dlistValue t;
               ^
/in/correct/dlist.c:106:11: error: unused variable 'm' [-Werror,-Wunused-variable]
    char* m;
          ^
6 errors generated.

Information

Submit By
Type
Submission
Homework
Lab 7: Debugging Lab
Language
C (Clang, with memory check)
Submit At
2018-12-04 11:15:15
Judged At
2018-12-04 11:15:15
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes