From: Magnus Jacobsson Date: Mon, 31 Aug 2020 18:34:33 +0000 (+0200) Subject: Remove 3 -Wunused-parameter warnings in rec.c X-Git-Tag: 2.46.0~20^2^2~93^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07a32775b715c0bf18ff0437623b0503dd791592;p=graphviz Remove 3 -Wunused-parameter warnings in rec.c --- diff --git a/lib/cgraph/rec.c b/lib/cgraph/rec.c index 3133ad6f2..264684302 100644 --- a/lib/cgraph/rec.c +++ b/lib/cgraph/rec.c @@ -64,6 +64,7 @@ static void objputrec(Agraph_t * g, Agobj_t * obj, void *arg) { Agrec_t *firstrec, *newrec; + NOTUSED(g); newrec = arg; firstrec = obj->data; if (firstrec == NIL(Agrec_t *)) @@ -107,6 +108,7 @@ void *agbindrec(void *arg_obj, char *recname, unsigned int recsize, /* if obj points to rec, move its data pointer. break any mtf lock(?) */ static void objdelrec(Agraph_t * g, Agobj_t * obj, void *arg_rec) { + NOTUSED(g); Agrec_t *rec = (Agrec_t *) arg_rec, *newrec; if (obj->data == rec) { if (rec->next == rec) @@ -161,6 +163,7 @@ int agdelrec(void *arg_obj, char *name) static void simple_delrec(Agraph_t * g, Agobj_t * obj, void *rec_name) { + NOTUSED(g); agdelrec(obj, rec_name); }