From eb8831a1416ab2ee8123b3add78421c2aa316b39 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 19 Apr 2023 04:29:10 +0100 Subject: Rename attribute macros to namespaced RC_* This conflicts with linux-headers which uses __unused for some padding members on ppc64le at least. Closes: https://github.com/OpenRC/openrc/issues/622 --- src/start-stop-daemon/start-stop-daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/start-stop-daemon') diff --git a/src/start-stop-daemon/start-stop-daemon.c b/src/start-stop-daemon/start-stop-daemon.c index c277345d..ef6f454e 100644 --- a/src/start-stop-daemon/start-stop-daemon.c +++ b/src/start-stop-daemon/start-stop-daemon.c @@ -179,9 +179,9 @@ extern char **environ; # define SYS_ioprio_set __NR_ioprio_set #endif #if !defined(__DragonFly__) -static inline int ioprio_set(int which _unused, - int who _unused, - int ioprio _unused) +static inline int ioprio_set(int which RC_UNUSED, + int who RC_UNUSED, + int ioprio RC_UNUSED) { #ifdef SYS_ioprio_set return syscall(SYS_ioprio_set, which, who, ioprio); -- cgit v1.2.3