summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.h
diff options
context:
space:
mode:
authorRuediger Meier2017-06-11 22:00:49 +0200
committerKarel Zak2017-06-14 11:48:22 +0200
commit39ff5b34d3274a02526a1226fdd8845c95bbc823 (patch)
tree293a8448c1c976ab1b99700a06631ed2d071a6ef /sys-utils/hwclock.h
parentlibmount: btrfs, remove unused setter functions (diff)
downloadkernel-qcow2-util-linux-39ff5b34d3274a02526a1226fdd8845c95bbc823.tar.gz
kernel-qcow2-util-linux-39ff5b34d3274a02526a1226fdd8845c95bbc823.tar.xz
kernel-qcow2-util-linux-39ff5b34d3274a02526a1226fdd8845c95bbc823.zip
hwclock: fix warning [-Winvalid-noreturn]
clang warned: CC sys-utils/hwclock.o ../sys-utils/hwclock.c:1274:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] We have to move the noreturn attribute from the function definition to the declaration. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/hwclock.h')
-rw-r--r--sys-utils/hwclock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h
index f3f76a6da..d527fe310 100644
--- a/sys-utils/hwclock.h
+++ b/sys-utils/hwclock.h
@@ -73,6 +73,7 @@ extern int get_epoch_rtc(const struct hwclock_control *ctl, unsigned long *epoch
extern int set_epoch_rtc(const struct hwclock_control *ctl);
#endif
-extern void hwclock_exit(const struct hwclock_control *ctl, int status);
+extern void __attribute__((__noreturn__))
+hwclock_exit(const struct hwclock_control *ctl, int status);
#endif /* HWCLOCK_CLOCK_H */