Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control reaches end of non-void function #1

Open
ivan-pi opened this issue May 11, 2023 · 0 comments · May be fixed by #3
Open

Control reaches end of non-void function #1

ivan-pi opened this issue May 11, 2023 · 0 comments · May be fixed by #3

Comments

@ivan-pi
Copy link

ivan-pi commented May 11, 2023

The following function is missing a return 0; statement at the end.

int vx2refine(char *fname_vx, char *fnameRef_vx, uint64_t bsize, MPI_Comm comm)

[ 92%] Building CXX object CMakeFiles/mpivx2refine.dir/vx2refine/parallel/mpivx2refine.cc.o
/Users/di75yas/compbiomed/HemePure_tools/vx2refine/parallel/mpivx2refine.cc: In function 'int vx2refine(char*, char*, uint64_t, MPI_Comm)':
/Users/di75yas/compbiomed/HemePure_tools/vx2refine/parallel/mpivx2refine.cc:228:1: warning: control reaches end of non-void function [-Wreturn-type]
  228 | }
      | ^
[100%] Linking CXX executable mpivx2refine
[100%] Built target mpivx2refine
@ivan-pi ivan-pi linked a pull request May 12, 2023 that will close this issue
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 a pull request may close this issue.

1 participant