From 6a39419fe4e4ab7beb2412b6a52b5fd513509452 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Wed, 29 Feb 2012 14:42:49 +0100 Subject: fix sparse warnings --- src/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/log.c') 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."); } -- cgit v1.2.3-54-g00ecf