Skip to content

Comments

Python3#43

Open
mr-c wants to merge 5 commits intobenedictpaten:masterfrom
mr-c:Python3
Open

Python3#43
mr-c wants to merge 5 commits intobenedictpaten:masterfrom
mr-c:Python3

Conversation

@mr-c
Copy link
Contributor

@mr-c mr-c commented Jun 25, 2020

Switch to Python3

@mr-c
Copy link
Contributor Author

mr-c commented Jan 21, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant