Skip to content

Commit b95a80f

Browse files
committed
Remove references to function arguments in naked functions
Naked functions are not allowed to contain anything other than asm blocks. These void casts cause clang to error.
1 parent d75bcbd commit b95a80f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

coroutine.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ void __attribute__((naked)) coroutine_yield(void)
103103

104104
void __attribute__((naked)) coroutine_sleep_read(int fd)
105105
{
106-
(void) fd;
107106
// @arch
108107
asm(
109108
" pushq %rdi\n"
@@ -121,7 +120,6 @@ void __attribute__((naked)) coroutine_sleep_read(int fd)
121120

122121
void __attribute__((naked)) coroutine_sleep_write(int fd)
123122
{
124-
(void) fd;
125123
// @arch
126124
asm(
127125
" pushq %rdi\n"
@@ -140,7 +138,6 @@ void __attribute__((naked)) coroutine_sleep_write(int fd)
140138
void __attribute__((naked)) coroutine_restore_context(void *rsp)
141139
{
142140
// @arch
143-
(void)rsp;
144141
asm(
145142
" movq %rdi, %rsp\n"
146143
" popq %r15\n"

0 commit comments

Comments
 (0)