From 1804ddc8b95c758b704df339bf8f330c96e88aa2 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 19 Nov 2021 21:25:14 -0800 Subject: [PATCH] plugin/gdiplus/gvtextlayout_gdiplus.cpp: squash -Wunused-parameter warnings --- plugin/gdiplus/gvtextlayout_gdiplus.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugin/gdiplus/gvtextlayout_gdiplus.cpp b/plugin/gdiplus/gvtextlayout_gdiplus.cpp index 2b0414822..94f99d16a 100644 --- a/plugin/gdiplus/gvtextlayout_gdiplus.cpp +++ b/plugin/gdiplus/gvtextlayout_gdiplus.cpp @@ -19,11 +19,8 @@ using namespace Gdiplus; -static int CALLBACK fetch_first_font( - const LOGFONTA *logFont, - const TEXTMETRICA *textMetrics, - DWORD fontType, - LPARAM lParam) +static int CALLBACK fetch_first_font(const LOGFONTA *logFont, + const TEXTMETRICA *, DWORD, LPARAM lParam) { /* save the first font we see in the font enumeration */ *((LOGFONTA *)lParam) = *logFont; @@ -66,7 +63,7 @@ void gdiplus_free_layout(void *layout) delete reinterpret_cast(layout); }; -boolean gdiplus_textlayout(textspan_t *span, char **fontpath) +boolean gdiplus_textlayout(textspan_t *span, char **) { /* ensure GDI+ is started up: since we get called outside of a job, we can't rely on GDI+ startup then */ UseGdiplus(); -- 2.40.0