]> err.no Git - systemd/commitdiff
pager: add _noreturn_ to pager_fallback()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2011 09:27:06 +0000 (11:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2011 13:41:32 +0000 (15:41 +0200)
src/pager.c: In function ‘pager_fallback’:
src/pager.c:35:13: warning: function might be possible candidate for attribute ‘noreturn’ [-Wmissing-noreturn]

src/pager.c

index 6e2bb4901ecd5dcc855c00163fd3d61fc24b3df7..3fc81820e9b4de7444658197cb98bb7ee3858c9d 100644 (file)
@@ -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);