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