Skip to content

Python3#43

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

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

Conversation

@mr-c

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

Copy link
Copy Markdown
Contributor

Switch to Python3

Comment thread allTests.py Outdated
Comment thread bioio.py Outdated
Comment thread nxnewick.py
Comment thread treeTest.py Outdated
@mr-c

mr-c commented Jan 21, 2021

Copy link
Copy Markdown
Contributor Author

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