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));
                                 ^
1 error generated.

Information

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