core: Make enumeration__calc_prefix() static

As it is not used outside where it is defined.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-25 09:57:24 -03:00
parent 45ec63ed20
commit ec1667c76d
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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);