summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorMarek Polacek2010-10-29 01:04:30 +0200
committerKarel Zak2010-10-29 13:26:25 +0200
commit98da1298ca82b232bdff0abec81ca325f00031d9 (patch)
treec9a4a176b371273603959d3746bf2d7716a07c11 /schedutils
parentuse _exit() instead of exit() in sighandlers (diff)
downloadkernel-qcow2-util-linux-98da1298ca82b232bdff0abec81ca325f00031d9.tar.gz
kernel-qcow2-util-linux-98da1298ca82b232bdff0abec81ca325f00031d9.tar.xz
kernel-qcow2-util-linux-98da1298ca82b232bdff0abec81ca325f00031d9.zip
chrt: Add noreturn attribute to show_usage() function
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 89b12c701..811eb200e 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -54,7 +54,7 @@
#endif
-static void show_usage(int rc)
+static void __attribute__((__noreturn__)) show_usage(int rc)
{
FILE *out = rc == EXIT_SUCCESS ? stdout : stderr;