From 98f21e694a6b0964d6d08196cb6bfbc1c2ae2ff4 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 5 Jul 2024 00:02:53 +0300 Subject: fix some small build issues + Compiling for size emits memcpy() calls after they've already been removed by LTO, so add __used attribute to counteract this. Newer versions of GCC seem to prefer `-flto=auto` to just `-flto`, so use that. printf format %d -> %ld --- src/uapi/ipc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/uapi/ipc.c') diff --git a/src/uapi/ipc.c b/src/uapi/ipc.c index ddc7242..3c24f1c 100644 --- a/src/uapi/ipc.c +++ b/src/uapi/ipc.c @@ -153,7 +153,8 @@ static __noreturn void __run_notify(struct tcb *t, struct tcb *r) /* if we're in the root process, we can safely handle signals and * becoming orphaned */ if (!is_rpc(t)) - set_bits(flags, t->notify_flags & (NOTIFY_SIGNAL | NOTIFY_ORPHANED)); + set_bits(flags, + t->notify_flags & (NOTIFY_SIGNAL | NOTIFY_ORPHANED)); /* handle critical notifications with special care */ if (is_set(t->notify_flags, NOTIFY_IRQ | NOTIFY_TIMER)) { -- cgit v1.3