core: Make enumeration__max_entry_name_len() 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 dc83336171
commit bb22f5bb0a
2 changed files with 1 additions and 2 deletions

View File

@ -1089,7 +1089,6 @@ struct class_member *type__last_member(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);
void enumerations__calc_prefix(struct list_head *enumerations);

View File

@ -362,7 +362,7 @@ static size_t imported_module__fprintf(const struct tag *tag,
return fprintf(fp, "using namespace %s", name);
}
int enumeration__max_entry_name_len(struct type *type)
static int enumeration__max_entry_name_len(struct type *type)
{
if (type->max_tag_name_len)
goto out;