mcmctree: fix compile error#78
Open
starsareintherose wants to merge 1 commit into
Open
Conversation
In file included from yn00.c:69:
treesub.c: In function ‘DistanceMatNG86’:
treesub.c:2385:20: warning: variable ‘SEdn’ set but not used [-Wunused-but-set-variable]
2385 | double SEds=-1, SEdn=-1, p;
| ^~~~
treesub.c:2385:11: warning: variable ‘SEds’ set but not used [-Wunused-but-set-variable]
2385 | double SEds=-1, SEdn=-1, p;
| ^~~~
In file included from codeml.c:244:
treesub.c: In function ‘DistanceMatNG86’:
treesub.c:2385:20: warning: variable ‘SEdn’ set but not used [-Wunused-but-set-variable]
2385 | double SEds=-1, SEdn=-1, p;
| ^~~~
treesub.c:2385:11: warning: variable ‘SEds’ set but not used [-Wunused-but-set-variable]
2385 | double SEds=-1, SEdn=-1, p;
| ^~~~
In file included from mcmctree.c:210:
treesub.c:8653:5: error: conflicting types for ‘ProcessNodeAnnotation’; have ‘int(int *)’
8653 | int ProcessNodeAnnotation(int* haslabel)
| ^~~~~~~~~~~~~~~~~~~~~
mcmctree.c:45:5: note: previous declaration of ‘ProcessNodeAnnotation’ with type ‘int(void)’
45 | int ProcessNodeAnnotation();
| ^~~~~~~~~~~~~~~~~~~~~
baseml.c: In function ‘main’:
baseml.c:407:7: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
407 | memset(com.spname, 0, NS * sizeof(char));
| ^~~~~~
codeml.c: In function ‘main’:
codeml.c:582:7: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
582 | memset(com.spname, 0, NS * sizeof(char));
| ^~~~~~
make: *** [Makefile:38: mcmctree.o] Error 1
make: *** Waiting for unfinished jobs....
Author
ziheng-yang
added a commit
that referenced
this pull request
May 16, 2025
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mcmctree faces compile error
The function declaration should be changed.
Error report shows below
my environment