From bb22f5bb0a137342cc275643dac3e5ea23559aa9 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__max_entry_name_len() static As it is not used outside where it is defined. Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.h | 1 - dwarves_fprintf.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dwarves.h b/dwarves.h index ebb4b16..cf49f49 100644 --- a/dwarves.h +++ b/dwarves.h @@ -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); diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c index ed45fa1..e9fb3d5 100644 --- a/dwarves_fprintf.c +++ b/dwarves_fprintf.c @@ -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;