From: Matthew Fernandez Date: Thu, 7 Apr 2022 00:36:42 +0000 (-0700) Subject: Quartz plugin quartz_textlayout: squash -Wunused-parameter warning X-Git-Tag: 4.0.0~120^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3007680fafd7d08550975ff6ae85ecf41d9d5544;p=graphviz Quartz plugin quartz_textlayout: squash -Wunused-parameter warning This parameter cannot be removed because this function is used as a callback. --- diff --git a/plugin/quartz/gvtextlayout_quartz.c b/plugin/quartz/gvtextlayout_quartz.c index f12c9a4a2..76ef6754b 100644 --- a/plugin/quartz/gvtextlayout_quartz.c +++ b/plugin/quartz/gvtextlayout_quartz.c @@ -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) {