From ec1667c76db61e2fb472ac8412d8b97fca4f6030 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Fri, 25 Jun 2021 09:57:24 -0300 Subject: [PATCH] core: Make enumeration__calc_prefix() static As it is not used outside where it is defined. Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.c | 2 +- dwarves.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dwarves.c b/dwarves.c index 9d6ff19..fca0f9a 100644 --- a/dwarves.c +++ b/dwarves.c @@ -1706,7 +1706,7 @@ static int strcommon(const char *a, const char *b) return i; } -void enumeration__calc_prefix(struct type *enumeration) +static void enumeration__calc_prefix(struct type *enumeration) { if (enumeration->member_prefix) return; diff --git a/dwarves.h b/dwarves.h index 5a664bf..ca44d2d 100644 --- a/dwarves.h +++ b/dwarves.h @@ -1087,7 +1087,6 @@ struct class_member *type__find_member_by_name(const struct type *type, const ch uint32_t type__nr_members_of_type(const struct type *type, const type_id_t oftype); struct class_member *type__last_member(struct type *type); -void enumeration__calc_prefix(struct type *type); const char *enumeration__prefix(struct type *type, const struct cu *cu); uint16_t enumeration__prefix_len(struct type *type, const struct cu *cu); int enumeration__max_entry_name_len(struct type *type, const struct cu *cu);