summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-10-11 00:15:32 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2023-10-12 21:23:18 +0300
commit7d67b9ff28d09de58c632f80ef7d330e45e698f6 (patch)
tree16c8afc9dc80d70951f83d2f1182ace0edc7ee49 /tools
parent9bc4d9eaec92589deda092bd867054e25e64be3f (diff)
build: add -Wimplicit-fallthrough
Also: - replace all /* fallthrough */ comments with portable fallthrough; pseudo keyword to accomodate both gcc and clang - add missing break; statements as required by older versions of gcc - cleanup some code to remove unnecessary fallthrough Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/frr-llvm-cg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frr-llvm-cg.c b/tools/frr-llvm-cg.c
index 3a7222e421..f366ba62f9 100644
--- a/tools/frr-llvm-cg.c
+++ b/tools/frr-llvm-cg.c
@@ -231,7 +231,7 @@ static void walk_const_fptrs(struct json_object *js_call, LLVMValueRef value,
"%s: calls function pointer from unhandled const GEP\n",
prefix);
*hdr_written = true;
- /* fallthru */
+ fallthrough;
default:
/* to help the user / development */
if (!*hdr_written) {