summaryrefslogtreecommitdiffstats
path: root/mgmtd
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2025-01-10 13:01:00 +0100
committerChristian Hopps <chopps@labn.net>2025-01-14 05:40:52 +0100
commitc88b48929c60ffe0214949fdf85afefa4038327b (patch)
tree715c50f1f42a9d6c492ce87a746941eb29ed7966 /mgmtd
parenttests: add datastore notification test (diff)
downloadfrr-c88b48929c60ffe0214949fdf85afefa4038327b.tar.xz
frr-c88b48929c60ffe0214949fdf85afefa4038327b.zip
lib: fix new (incorrect) CLANG SA warnings
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd')
-rw-r--r--mgmtd/mgmt_history.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mgmtd/mgmt_history.c b/mgmtd/mgmt_history.c
index c97cb7f0f..934748b1f 100644
--- a/mgmtd/mgmt_history.c
+++ b/mgmtd/mgmt_history.c
@@ -177,6 +177,7 @@ static bool mgmt_history_dump_cmt_record_index(void)
return false;
}
+ assert(cnt <= 10); /* silence bad CLANG SA warning */
ret = fwrite(&cmt_info_set, sizeof(struct mgmt_cmt_info_t), cnt, fp);
fclose(fp);
if (ret != cnt) {