Hi,

After the patch 8.1.1224, MinGW warns this:

gui_w32.c: In function 'logfont2name':
gui_w32.c:3132:35: warning: format '%d' expects argument of type 'int', but 
argument 5 has type 'LONG {aka long int}' [-Wformat=]
      sprintf((char *)p, "%s:h%d:W%d", font_name, points, lf.lfWeight);
                                  ~^                      ~~~~~~~~~~~
                                  %ld

Sorry, this is my mistake.
The following patch fixes this:

--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -3129,7 +3129,7 @@ logfont2name(LOGFONTW lf)
        if (lf.lfWeight == FW_NORMAL || lf.lfWeight == FW_BOLD)
            sprintf((char *)p, "%s:h%d", font_name, points);
        else
-           sprintf((char *)p, "%s:h%d:W%d", font_name, points, lf.lfWeight);
+           sprintf((char *)p, "%s:h%d:W%ld", font_name, points, lf.lfWeight);
        while (*p)
        {
            if (*p == ' ')

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui