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=.
This commit is contained in:
BaN-Co 2018-01-09 15:36:37 +07:00 committed by GitHub
parent 6c8537fab1
commit 3a176fa658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -633,6 +633,7 @@ static void wait_for_vchan_client_with_timeout(libvchan_t *conn, int timeout) {
fprintf(stderr, "vchan connection error\n"); fprintf(stderr, "vchan connection error\n");
libvchan_close(conn); libvchan_close(conn);
do_exit(1); do_exit(1);
break;
case 0: case 0:
fprintf(stderr, "vchan connection timeout\n"); fprintf(stderr, "vchan connection timeout\n");
libvchan_close(conn); libvchan_close(conn);