summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@suse.com>2012-02-29 14:42:49 +0100
committerLennart Poettering <lennart@poettering.net>2012-03-05 15:07:14 +0100
commit6a39419fe4e4ab7beb2412b6a52b5fd513509452 (patch)
tree11943a797fb6969ddc76102ae12d095f2b878060 /src/log.c
parent7be3aa1732f76245b58f8cdfe74707f8f7f67d18 (diff)
fix sparse warnings
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index c37ab22640..e1f511cca6 100644
--- a/src/log.c
+++ b/src/log.c
@@ -625,11 +625,11 @@ _noreturn_ static void log_assert(const char *text, const char *file, int line,
}
#pragma GCC diagnostic pop
-void log_assert_failed(const char *text, const char *file, int line, const char *func) {
+_noreturn_ void log_assert_failed(const char *text, const char *file, int line, const char *func) {
log_assert(text, file, line, func, "Assertion '%s' failed at %s:%u, function %s(). Aborting.");
}
-void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func) {
+_noreturn_ void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func) {
log_assert(text, file, line, func, "Code should not be reached '%s' at %s:%u, function %s(). Aborting.");
}