summaryrefslogtreecommitdiff
path: root/lib/zlog_targets.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-12-16 07:38:58 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-12-16 07:38:58 -0500
commit16c150f27b836fc778b7e0aac4da9200ffe9efbe (patch)
treeb2a7474af38a7fd48a75f040bafa179517e193c9 /lib/zlog_targets.c
parent507621139bf506b76a587435f969daf86a035b95 (diff)
lib, staticd: return values even after an assert
When compiling with -fsanitize=thread. I started getting this error: staticd/static_zebra.c: In function ‘static_zebra_nht_get_prefix’: staticd/static_zebra.c:316:1: error: control reaches end of non-void function [-Werror=return-type] 316 | } | ^ Just to make future efforts still work, let's just make the compiler happy. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/zlog_targets.c')
-rw-r--r--lib/zlog_targets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zlog_targets.c b/lib/zlog_targets.c
index 31bd8e16eb..f7ea48bf9d 100644
--- a/lib/zlog_targets.c
+++ b/lib/zlog_targets.c
@@ -257,6 +257,7 @@ bool zlog_file_set_filename(struct zlog_cfg_file *zcf, const char *filename)
return zlog_file_cycle(zcf);
}
assert(0);
+ return false;
}
bool zlog_file_set_fd(struct zlog_cfg_file *zcf, int fd)
@@ -271,6 +272,7 @@ bool zlog_file_set_fd(struct zlog_cfg_file *zcf, int fd)
return zlog_file_cycle(zcf);
}
assert(0);
+ return false;
}
struct rcu_close_rotate {
@@ -544,6 +546,7 @@ int zlog_syslog_get_facility(void)
return syslog_facility;
}
assert(0);
+ return 0;
}
void zlog_syslog_set_prio_min(int prio_min)
@@ -581,4 +584,5 @@ int zlog_syslog_get_prio_min(void)
return syslog_prio_min;
}
assert(0);
+ return 0;
}