Fix fall through

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=.
pull/36/head
BaN-Co 6 years ago committed by GitHub
parent 6c8537fab1
commit 3a176fa658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save