From: Zbigniew Jędrzejewski-Szmek Date: Tue, 11 Oct 2011 09:27:06 +0000 (+0200) Subject: pager: add _noreturn_ to pager_fallback() X-Git-Tag: v37~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adda7d8b9715a5090d9189144828ef4d3f51348c;p=systemd pager: add _noreturn_ to pager_fallback() src/pager.c: In function ‘pager_fallback’: src/pager.c:35:13: warning: function might be possible candidate for attribute ‘noreturn’ [-Wmissing-noreturn] --- diff --git a/src/pager.c b/src/pager.c index 6e2bb490..3fc81820 100644 --- a/src/pager.c +++ b/src/pager.c @@ -32,7 +32,7 @@ static pid_t pager_pid = 0; -static void pager_fallback(void) { +_noreturn_ static void pager_fallback(void) { ssize_t n; do { n = splice(STDIN_FILENO, NULL, STDOUT_FILENO, NULL, 64*1024, 0);