mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
dev-lua/cqueues: fix incompatible-pointer
>src/signal.c:545:31:
>error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from
>incompatible pointer type ‘void (*)(void)’[-Wincompatible-pointer-types]
> 545 | sa.sa_handler = &ls_noop;
> | ^
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44733
Closes: https://github.com/gentoo/gentoo/pull/44733
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
ef5165a744
commit
5c629794b5
@ -83,3 +83,14 @@ Subject: [PATCH] Ext DNS: add function pointers prototypes in order to
|
||||
unsigned args[2];
|
||||
|
||||
struct {
|
||||
--- a/src/signal.c
|
||||
+++ b/src/signal.c
|
||||
@@ -533,7 +533,7 @@ static int ls_default(lua_State *L) {
|
||||
} /* ls_default() */
|
||||
|
||||
|
||||
-static void ls_noop() {
|
||||
+static void ls_noop(int _unused) {
|
||||
return;
|
||||
} /* ls_noop() */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user