[systemd-devel] [PATCH] add _noreturn_ to pager_fallback()

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Oct 11 02:27:06 PDT 2011


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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pager.c b/src/pager.c
index 6e2bb49..3fc8182 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);
-- 
1.7.7.1.g1899



More information about the systemd-devel mailing list