sonLib icon indicating copy to clipboard operation
sonLib copied to clipboard

Python3

Open mr-c opened this issue 5 years ago • 1 comments

Switch to Python3

mr-c avatar Jun 25 '20 14:06 mr-c

The TravisCI build fails for the same reason the master branch fails:

gcc -std=c99  -Wall -O0 -Werror --pedantic -g -fno-inline -UNDEBUG -Wno-error=unused-result -I/usr/include -DHAVE_TOKYO_CABINET=1 -I/usr/include -DHAVE_KYOTO_TYCOON=1     -I../externalTools/quicktree_1.1/include/  -I inc -I ../lib/  -c impl/*.c
impl/sonLibList.c: In function ‘st_list_sortP’:
impl/sonLibList.c:258:13: error: ISO C forbids conversion of object pointer to function pointer type [-Werror=pedantic]
     return ((int (*)(const void *, const void *))fn)(*((char **)a), *((char **)b));
             ^
impl/sonLibList.c: In function ‘stList_sort’:
impl/sonLibList.c:262:76: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
     sort_r(list->list, stList_length(list), sizeof(void *), st_list_sortP, (void *)cmpFn);
                                                                            ^
impl/sonLibList.c: In function ‘st_list_sort2P’:
impl/sonLibList.c:267:56: error: ISO C forbids conversion of object pointer to function pointer type [-Werror=pedantic]
     int (*cmpFn)(const void *, const void *, void *) = (int (*)(const void *, const void *, void *))(((void **)extra)[0]);
                                                        ^
impl/sonLibList.c: In function ‘stList_sort2’:
impl/sonLibList.c:273:24: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
     void *extra[2] = { (void *)cmpFn, (void *)extraArg };
                        ^
cc1: all warnings being treated as errors

mr-c avatar Jan 21 '21 07:01 mr-c