From 3a176fa65835506d06b79ab7e1fbec92683f8d82 Mon Sep 17 00:00:00 2001 From: BaN-Co Date: Tue, 9 Jan 2018 15:36:37 +0700 Subject: [PATCH] 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=. --- qrexec/qrexec-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qrexec/qrexec-client.c b/qrexec/qrexec-client.c index fc6c6f5..c3d6145 100644 --- a/qrexec/qrexec-client.c +++ b/qrexec/qrexec-client.c @@ -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);