Skip to content

Commit

Permalink
Fix fall through
Browse files Browse the repository at this point in the history
It's necessary to add the break at the end of "case -1" statement else the compiler will treat it as fall through and GCC 7 will throw an error because of -Werror=implicit-fallthrough=.
  • Loading branch information
BaN-Co authored Jan 9, 2018
1 parent 6c8537f commit 3a176fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qrexec/qrexec-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ static void wait_for_vchan_client_with_timeout(libvchan_t *conn, int timeout) {
fprintf(stderr, "vchan connection error\n");
libvchan_close(conn);
do_exit(1);
break;
case 0:
fprintf(stderr, "vchan connection timeout\n");
libvchan_close(conn);
Expand Down

0 comments on commit 3a176fa

Please sign in to comment.