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

src/fasta_formatter/fasta_formatter.cpp #21

Open
vpbrendel opened this issue Jun 27, 2018 · 2 comments
Open

src/fasta_formatter/fasta_formatter.cpp #21

vpbrendel opened this issue Jun 27, 2018 · 2 comments

Comments

@vpbrendel
Copy link

Line 105: usage();

should be followed by "exit();"

Otherwise, compilation fails on Ubuntu 18.04 with message:

fasta_formatter.cpp:105:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
usage();
~~~~~^~
fasta_formatter.cpp:107:3: note: here
case 'i':
^~~~
cc1plus: all warnings being treated as errors

@aubreybailey
Copy link

can verify

@skbrimer
Copy link

skbrimer commented Sep 4, 2019

I found that adding exit() after usage like this

usage();
 exit();

didn't work I added this and it worked properly

usage();
exit(0);

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

No branches or pull requests

3 participants