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