]> granicus.if.org Git - graphviz/commitdiff
Quartz plugin quartz_textlayout: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Apr 2022 00:36:42 +0000 (17:36 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Apr 2022 15:31:26 +0000 (08:31 -0700)
This parameter cannot be removed because this function is used as a callback.

plugin/quartz/gvtextlayout_quartz.c

index f12c9a4a233f782d97070bfd514259d30c63832d..76ef6754bda4b0febfdaf8ba12a77ec19d70627f 100644 (file)
@@ -96,6 +96,8 @@ void quartz_free_layout(void *layout)
 
 static bool quartz_textlayout(textspan_t *para, char **fontpath)
 {
+       (void)fontpath;
+
        void *line = quartz_new_layout(para->font->name, para->font->size, para->str);
        if (line)
        {