]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Mark fs_cmd_help() with ATTR_NORETURN
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 21 Jul 2021 14:14:26 +0000 (17:14 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 21 Jul 2021 14:25:21 +0000 (14:25 +0000)
This helps static analyzers understand that the function doesn't return.

src/doveadm/doveadm-fs.c

index 12025f1173df9fff6bf92519db5f86fe2d7cf049..17f6129927dbf4a69d3ea819b50eb45c2a19d980 100644 (file)
@@ -16,7 +16,7 @@
 #include <stdio.h>
 #include <unistd.h>
 
-static void fs_cmd_help(struct doveadm_cmd_context *cctx);
+static void fs_cmd_help(struct doveadm_cmd_context *cctx) ATTR_NORETURN;
 static void cmd_fs_delete(struct doveadm_cmd_context *cctx);
 
 static struct fs *