From: Magnus Jacobsson Date: Tue, 1 Sep 2020 06:34:02 +0000 (+0200) Subject: Remove 4 -Wmissing-prototypes warnings in attr.c by adding static X-Git-Tag: 2.46.0~20^2^2~93^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a31464fa14ac08b2eb2b3d2ba2dd806b112b12b1;p=graphviz Remove 4 -Wmissing-prototypes warnings in attr.c by adding static --- diff --git a/lib/cgraph/attr.c b/lib/cgraph/attr.c index 8a93a6b24..606ab7bef 100644 --- a/lib/cgraph/attr.c +++ b/lib/cgraph/attr.c @@ -51,7 +51,7 @@ Agdatadict_t *agdatadict(Agraph_t * g, int cflag) return rv; } -Dict_t *agdictof(Agraph_t * g, int kind) +static Dict_t *agdictof(Agraph_t * g, int kind) { Agdatadict_t *dd; Dict_t *dict; @@ -78,7 +78,7 @@ Dict_t *agdictof(Agraph_t * g, int kind) return dict; } -Agsym_t *agnewsym(Agraph_t * g, char *name, char *value, int id, int kind) +static Agsym_t *agnewsym(Agraph_t * g, char *name, char *value, int id, int kind) { Agsym_t *sym; sym = agalloc(g, sizeof(Agsym_t)); @@ -133,7 +133,7 @@ static Agdatadict_t *agmakedatadict(Agraph_t * g) } /* look up an attribute with possible viewpathing */ -Agsym_t *agdictsym(Dict_t * dict, char *name) +static Agsym_t *agdictsym(Dict_t * dict, char *name) { Agsym_t key; key.name = (char *) name; @@ -141,7 +141,7 @@ Agsym_t *agdictsym(Dict_t * dict, char *name) } /* look up attribute in local dictionary with no view pathing */ -Agsym_t *aglocaldictsym(Dict_t * dict, char *name) +static Agsym_t *aglocaldictsym(Dict_t * dict, char *name) { Agsym_t *rv; Dict_t *view;