diff options
author | Frederic Crozat <fcrozat@suse.com> | 2012-02-29 14:42:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-03-05 15:07:14 +0100 |
commit | 6a39419fe4e4ab7beb2412b6a52b5fd513509452 (patch) | |
tree | 11943a797fb6969ddc76102ae12d095f2b878060 /src/log.c | |
parent | 7be3aa1732f76245b58f8cdfe74707f8f7f67d18 (diff) |
fix sparse warnings
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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."); } |