mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
Fix `-Wincompatible-pointer-types` error. ``` symbol.c:337:1: error: conflicting types for 'collect_symbols'; have 'size_t(Symbol ***, int (*)(Symbol *), size_t)' {aka 'long unsigned int(struct symbol ***, int (*)(struct symbol *), long unsigned int)'} 337 | collect_symbols(Symbol ***return_sym, int (*sel)(Symbol *p), | ^~~~~~~~~~~~~~~ In file included from symbol.c:17: ./cflow.h:210:8: note: previous declaration of 'collect_symbols' with type 'size_t(Symbol ***, int (*)(void), size_t)' {aka 'long unsigned int(struct symbol ***, int (*)(void), long unsigned int)'} 210 | size_t collect_symbols(Symbol ***, int (*sel)(), size_t rescnt); | ^~~~~~~~~~~~~~~ ```
13 lines
558 B
Diff
13 lines
558 B
Diff
diff --git a/src/cflow.h b/src/cflow.h
|
|
index ec11be6..ac9ac47 100644
|
|
--- a/src/cflow.h
|
|
+++ b/src/cflow.h
|
|
@@ -207,7 +207,7 @@ void delete_autos(int level);
|
|
void delete_statics(void);
|
|
void delete_parms(int level);
|
|
void move_parms(int level);
|
|
-size_t collect_symbols(Symbol ***, int (*sel)(), size_t rescnt);
|
|
+size_t collect_symbols(Symbol ***, int (*sel)(Symbol *), size_t rescnt);
|
|
size_t collect_functions(Symbol ***return_sym);
|
|
struct linked_list *linked_list_create(linked_list_free_data_fp fun);
|
|
void linked_list_destroy(struct linked_list **plist);
|