From 465cd6080ab1c4150a04164d667ddcef7d3642e2 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 20 Jun 2021 17:52:33 -0700 Subject: [PATCH] remove unnecessary cast in gvusershape_open The result of find_user_shape, shape_desc*, implicitly coerces to void*. --- lib/gvc/gvusershape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index 4476571d1..6051887c9 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -675,7 +675,7 @@ static usershape_t *gvusershape_open (const char *name) switch(imagetype(us)) { case FT_NULL: - if (!(us->data = (void*)find_user_shape(us->name))) { + if (!(us->data = find_user_shape(us->name))) { agerr(AGWARN, "\"%s\" was not found as a file or as a shape library member\n", us->name); freeUsershape (us); return NULL; -- 2.40.0