]> granicus.if.org Git - graphviz/commitdiff
GD plugin gdgen_missingfont: remove unused 'err' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Aug 2022 03:30:13 +0000 (20:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Aug 2022 17:53:19 +0000 (10:53 -0700)
plugin/gd/gvrender_gd.c

index 6de5868c6f2b7efad715499f954f269a6d994b7c..b4d5923f512f5e81ea43ad45299f4f059c0b822c 100644 (file)
@@ -229,8 +229,7 @@ static void gdgen_end_page(GVJ_t * job)
 }
 
 #ifdef HAVE_GD_FREETYPE
-static void gdgen_missingfont(char *err, char *fontreq)
-{
+static void gdgen_missingfont(char *fontreq) {
     static char *lastmissing = 0;
     static int n_errors = 0;
 
@@ -297,7 +296,7 @@ void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fon
 
         if (err) {
             /* revert to builtin fonts */
-            gdgen_missingfont(err, fontname);
+            gdgen_missingfont(fontname);
 #endif
             sp.y += 2;
             if (fontsize <= 8.5) {