]> granicus.if.org Git - graphviz/commitdiff
plugin/gdiplus/gvtextlayout_gdiplus.cpp: squash -Wunused-parameter warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Nov 2021 05:25:14 +0000 (21:25 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 24 Nov 2021 15:47:40 +0000 (07:47 -0800)
plugin/gdiplus/gvtextlayout_gdiplus.cpp

index 2b04148222e4147668f80e0a684dbde6d259afe1..94f99d16a80c68cdb8576f6ab282eaf3a395e376 100644 (file)
 
 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*>(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();