Open EricDeveaud opened 5 years ago
Hello,
lumpy_filter ends with an undefined exit value in case of success.
when -Wall are in the CFLAGS flags, one can see
-Wall
filter.c:378:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
from filter.c
int main(int argc, char **argv) //snip//snap fprintf(stderr, "[lumpy_filter] extracted splits and discordants from %d total aligned reads\n", aligned_reads); if(ret < -1) { errx(1, "lumpy_filter: error reading bam: %s\n", bam_file_name); } }
when main finnish correctly, ie ret == 0 as no main has no return value the returned (aka exit value) is undefined so exit value is incorrect
ret == 0
should be:
int main(int argc, char **argv) //snip//snap fprintf(stderr, "[lumpy_filter] extracted splits and discordants from %d total aligned reads\n", aligned_reads); if(ret < -1) { errx(1, "lumpy_filter: error reading bam: %s\n", bam_file_name); } return ret; }
Hello,
lumpy_filter ends with an undefined exit value in case of success.
when
-Wall
are in the CFLAGS flags, one can seefrom filter.c
when main finnish correctly, ie
ret == 0
as no main has no return value the returned (aka exit value) is undefined so exit value is incorrectshould be: