From f9bd35dcfa256a9dced78518430220f493a9524f Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 22 Jul 2024 16:37:38 -0700 Subject: [PATCH] Make fallthrough explicit for libworker.c The code currently doesn't compile with LLVM's `-Wimplicit-fallthrough` flag, but the attribute works for both GCC (>=7) and LLVM. --- libunbound/libworker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libunbound/libworker.c b/libunbound/libworker.c index 5c75f61d8..191aa0b27 100644 --- a/libunbound/libworker.c +++ b/libunbound/libworker.c @@ -292,7 +292,7 @@ libworker_do_cmd(struct libworker* w, uint8_t* msg, uint32_t len) log_err("unknown command for bg worker %d", (int)context_serial_getcmd(msg, len)); /* and fall through to quit */ - /* fallthrough */ + __attribute__((fallthrough)); case UB_LIBCMD_QUIT: free(msg); comm_base_exit(w->base);