From 23dd2200dd4fc74025ae87f5c2127f3b0ff71e9b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 27 Jan 2018 12:08:04 +0100 Subject: [PATCH] aft: Avoid implicit fallthrough in switch statement. The missing return statement causes gcc-7 to complain: aft.c:2579:3: warning: this statement may fall through [-Wimplicit-fallthrough=] And indeed, this fall through was not intended when the code in question was introduced some months ago in commit a7a8d30e (Update status items on blob events). The issue is benign though, because also after falling through we return 0. --- aft.c | 1 + 1 file changed, 1 insertion(+) diff --git a/aft.c b/aft.c index 44337306..1234ee5a 100644 --- a/aft.c +++ b/aft.c @@ -2577,6 +2577,7 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb, * every time. */ make_status_items(); + return 0; } default: return 0; } -- 2.39.5