aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-07-03 11:01:36 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-07-03 11:01:40 +0300
commitd390490089bbecec5dd5e42e1629803352f05416 (patch)
tree145ffd0ee020ba770dc357c51f0150e1e485a907
parent1b50fec4963cc99465d153c3c4e8bb669e12de57 (diff)
downloadnasm-d390490089bbecec5dd5e42e1629803352f05416.tar.gz
nasm-d390490089bbecec5dd5e42e1629803352f05416.tar.xz
nasm-d390490089bbecec5dd5e42e1629803352f05416.zip
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>
-rw-r--r--output/outlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/output/outlib.c b/output/outlib.c
index fa7db15e..54c87530 100644
--- a/output/outlib.c
+++ b/output/outlib.c
@@ -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);