projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62590f2
)
pager: add _noreturn_ to pager_fallback()
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 11 Oct 2011 09:27:06 +0000
(11:27 +0200)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/pager.c
b/src/pager.c
index
6e2bb49
..
3fc8182
100644
(file)
--- 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);