]> granicus.if.org Git - graphviz/commitdiff
plugin/pango: print font map when verbose for all platforms
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 7 Jan 2022 21:42:20 +0000 (22:42 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:27 +0000 (09:35 +0100)
This effectively reverts commit
2029d4bf76360aba04a0ca779058caba7682e1e9.

Fixes this error with CMake on MinGW when compiled with -Werror:

C:/Users/magja/graphviz/plugin/pango/gvgetfontlist_pango.c:477:1: error: 'printFontMap' defined but not used [-Werror=unused-function]
  477 | printFontMap (gv_font_map*gv_fmap, int sz)
      | ^~~~~~~~~~~~

plugin/pango/gvgetfontlist_pango.c

index c2af11a80a1d4be8a906caaba9dac6e6999a869a..d1dcc90112c10a5caf18f8382a5f6fd194d0d5a7 100644 (file)
@@ -515,11 +515,9 @@ gv_font_map* get_font_mapping(PangoFontMap * fontmap)
     gv_flist_free_af(gv_af_p);
     agxbfree(&xb);
     agxbfree(&xb2);
-#ifndef _WIN32
     if (Verbose > 1) {
        fprintf(stderr, "Verbose %d\n", Verbose);
        printFontMap (gv_fmap, ps_fontnames_sz);
     }
-#endif
     return gv_fmap;
 }