mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
outlib: Make ol_add_sym_to being static
Otherwise getting building problem > output/outlib.c:197:6: error: no previous prototype for ‘ol_add_sym_to’ [-Werror=missing-prototypes] > 197 | void ol_add_sym_to(struct ol_symlist *syml, struct ol_symhead *head, > | ^~~~~~~~~~~~~ Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
1b50fec496
commit
d390490089
@ -194,8 +194,8 @@ int32_t _ol_new_subsection(struct ol_sect *sect)
|
||||
* Insert a symbol into a list; need to use upcasting using container_of()
|
||||
* to walk the list later.
|
||||
*/
|
||||
void ol_add_sym_to(struct ol_symlist *syml, struct ol_symhead *head,
|
||||
uint64_t offset)
|
||||
static void ol_add_sym_to(struct ol_symlist *syml, struct ol_symhead *head,
|
||||
uint64_t offset)
|
||||
{
|
||||
syml->tree.key = offset;
|
||||
head->tree = rb_insert(head->tree, &syml->tree);
|
||||
|
Loading…
Reference in New Issue
Block a user