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;