fastx_toolkit icon indicating copy to clipboard operation
fastx_toolkit copied to clipboard

src/fasta_formatter/fasta_formatter.cpp

Open vpbrendel opened this issue 6 years ago • 2 comments

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

vpbrendel avatar Jun 27 '18 22:06 vpbrendel

can verify

aubreybailey avatar Feb 07 '19 08:02 aubreybailey

I found that adding exit() after usage like this

usage();
 exit();

didn't work I added this and it worked properly

usage();
exit(0);

skbrimer avatar Sep 04 '19 20:09 skbrimer