From 39ff5b34d3274a02526a1226fdd8845c95bbc823 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sun, 11 Jun 2017 22:00:49 +0200 Subject: 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 --- sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/hwclock.c') diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 603146079..cfb6bcd6b 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1535,7 +1535,7 @@ int main(int argc, char **argv) return rc; /* Not reached */ } -void __attribute__((__noreturn__)) +void hwclock_exit(const struct hwclock_control *ctl #ifndef HAVE_LIBAUDIT __attribute__((__unused__)) -- cgit v1.2.3-55-g7522