summaryrefslogtreecommitdiff
path: root/lib/zlog_5424_cli.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-10-16 12:24:44 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2024-10-16 13:30:25 +0200
commitc071b4370d84ef9857cb1dec60b8f916ceefc476 (patch)
tree54a33c6856af1e36846ed518d10ecb96273940bf /lib/zlog_5424_cli.c
parent49cf311d46bed1b656251c1aa259f4f043095a9c (diff)
*: clang-SA switch-enum initializer workarounds
In these cases the value assigned by the switch block is used directly rather than returned. Mark the initial/default value as used so clang-SA doesn't complain about it. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zlog_5424_cli.c')
-rw-r--r--lib/zlog_5424_cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zlog_5424_cli.c b/lib/zlog_5424_cli.c
index 3003df542f..f97c426463 100644
--- a/lib/zlog_5424_cli.c
+++ b/lib/zlog_5424_cli.c
@@ -674,6 +674,7 @@ static int log_5424_config_write(struct vty *vty)
vty_out(vty, "log extended %s\n", cfg->name);
+ (void)fmt_str; /* clang-SA */
switch (cfg->cfg.fmt) {
case ZLOG_FMT_5424:
fmt_str = " format rfc5424";