Blame SOURCES/7.4.342

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.342
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.342
22c937
Problem:    Clang gives warnings.
22c937
Solution:   Add an else block. (Dominique Pelle)
22c937
Files:	    src/gui_beval.c
22c937
22c937
22c937
*** ../vim-7.4.341/src/gui_beval.c	2013-05-06 04:06:04.000000000 +0200
22c937
--- src/gui_beval.c	2014-06-25 17:40:40.818759649 +0200
22c937
***************
22c937
*** 1193,1203 ****
22c937
  	    XmFontList fl;
22c937
  
22c937
  	    fl = gui_motif_fontset2fontlist(&gui.tooltip_fontset);
22c937
! 	    if (fl != NULL)
22c937
  	    {
22c937
! 		XmStringExtent(fl, s, &w, &h);
22c937
! 		XmFontListFree(fl);
22c937
  	    }
22c937
  	}
22c937
  	w += gui.border_offset << 1;
22c937
  	h += gui.border_offset << 1;
22c937
--- 1193,1205 ----
22c937
  	    XmFontList fl;
22c937
  
22c937
  	    fl = gui_motif_fontset2fontlist(&gui.tooltip_fontset);
22c937
! 	    if (fl == NULL)
22c937
  	    {
22c937
! 		XmStringFree(s);
22c937
! 		return;
22c937
  	    }
22c937
+ 	    XmStringExtent(fl, s, &w, &h);
22c937
+ 	    XmFontListFree(fl);
22c937
  	}
22c937
  	w += gui.border_offset << 1;
22c937
  	h += gui.border_offset << 1;
22c937
*** ../vim-7.4.341/src/version.c	2014-06-25 17:31:04.942737863 +0200
22c937
--- src/version.c	2014-06-25 17:40:56.902760258 +0200
22c937
***************
22c937
*** 736,737 ****
22c937
--- 736,739 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     342,
22c937
  /**/
22c937
22c937
-- 
22c937
CUSTOMER:     Well, can you hang around a couple of minutes?  He won't be
22c937
              long.
22c937
MORTICIAN:    Naaah, I got to go on to Robinson's -- they've lost nine today.
22c937
CUSTOMER:     Well, when is your next round?
22c937
MORTICIAN:    Thursday.
22c937
DEAD PERSON:  I think I'll go for a walk.
22c937
                                  The Quest for the Holy Grail (Monty Python)
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///