@@ -115,7 +115,7 @@ void gc_init(void *start, void *end) {
115115 } \
116116 } while (0)
117117
118- static void gc_drain_stack () {
118+ static void gc_drain_stack (void ) {
119119 while (gc_sp > gc_stack ) {
120120 // pop the next block off the stack
121121 machine_uint_t block = * -- gc_sp ;
@@ -135,7 +135,7 @@ static void gc_drain_stack() {
135135 }
136136}
137137
138- static void gc_deal_with_stack_overflow () {
138+ static void gc_deal_with_stack_overflow (void ) {
139139 while (gc_stack_overflow ) {
140140 gc_stack_overflow = 0 ;
141141 gc_sp = gc_stack ;
@@ -151,7 +151,7 @@ static void gc_deal_with_stack_overflow() {
151151 }
152152}
153153
154- static void gc_sweep () {
154+ static void gc_sweep (void ) {
155155 // free unmarked heads and their tails
156156 int free_tail = 0 ;
157157 for (machine_uint_t block = 0 ; block < gc_alloc_table_byte_len * BLOCKS_PER_ATB ; block ++ ) {
@@ -174,7 +174,7 @@ static void gc_sweep() {
174174 }
175175}
176176
177- void gc_collect_start () {
177+ void gc_collect_start (void ) {
178178 gc_stack_overflow = 0 ;
179179 gc_sp = gc_stack ;
180180}
@@ -187,7 +187,7 @@ void gc_collect_root(void **ptrs, machine_uint_t len) {
187187 }
188188}
189189
190- void gc_collect_end () {
190+ void gc_collect_end (void ) {
191191 gc_deal_with_stack_overflow ();
192192 gc_sweep ();
193193}
@@ -336,7 +336,7 @@ void *gc_realloc(void *ptr, machine_uint_t n_bytes) {
336336}
337337
338338/*
339- static void gc_dump_at() {
339+ static void gc_dump_at(void ) {
340340 for (machine_uint_t bl = 0; bl < gc_alloc_table_byte_len * BLOCKS_PER_ATB; bl++) {
341341 printf("block % 6u ", bl);
342342 switch (ATB_GET_KIND(bl)) {
@@ -349,7 +349,7 @@ static void gc_dump_at() {
349349 }
350350}
351351
352- int main() {
352+ int main(void ) {
353353 machine_uint_t len = 1000;
354354 machine_uint_t *heap = malloc(len);
355355 gc_init(heap, heap + len / sizeof(machine_uint_t));
0 commit comments