From 7721cc17aca7020d8b372c396edcf8c9d76c9890 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 24 Jun 2021 21:02:23 -0300 Subject: [PATCH] emit: type__emit_fwd_decl() isn't used outside emit.c, make it static Signed-off-by: Arnaldo Carvalho de Melo --- dwarves_emit.c | 2 +- dwarves_emit.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dwarves_emit.c b/dwarves_emit.c index d9c8cfb..e6d96b2 100644 --- a/dwarves_emit.c +++ b/dwarves_emit.c @@ -193,7 +193,7 @@ out: return 1; } -int type__emit_fwd_decl(struct type *ctype, struct type_emissions *emissions, FILE *fp) +static int type__emit_fwd_decl(struct type *ctype, struct type_emissions *emissions, FILE *fp) { /* Have we already emitted this in this CU? */ if (ctype->fwd_decl_emitted) diff --git a/dwarves_emit.h b/dwarves_emit.h index acff645..be02acd 100644 --- a/dwarves_emit.h +++ b/dwarves_emit.h @@ -27,7 +27,6 @@ int ftype__emit_definitions(struct ftype *ftype, struct cu *cu, struct type_emissions *emissions, FILE *fp); int type__emit_definitions(struct tag *tag, struct cu *cu, struct type_emissions *emissions, FILE *fp); -int type__emit_fwd_decl(struct type *ctype, struct type_emissions *emissions, FILE *fp); void type__emit(struct tag *tag_type, struct cu *cu, const char *prefix, const char *suffix, FILE *fp); struct type *type_emissions__find_definition(const struct type_emissions *temissions,