updated for version 7.4.342
Problem: Clang gives warnings.
Solution: Add an else block. (Dominique Pelle)
diff --git a/src/gui_beval.c b/src/gui_beval.c
index fe930f3..ae78456 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -1193,11 +1193,13 @@
XmFontList fl;
fl = gui_motif_fontset2fontlist(&gui.tooltip_fontset);
- if (fl != NULL)
+ if (fl == NULL)
{
- XmStringExtent(fl, s, &w, &h);
- XmFontListFree(fl);
+ XmStringFree(s);
+ return;
}
+ XmStringExtent(fl, s, &w, &h);
+ XmFontListFree(fl);
}
w += gui.border_offset << 1;
h += gui.border_offset << 1;
diff --git a/src/version.c b/src/version.c
index d6c1eb3..3fdfae5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 342,
+/**/
341,
/**/
340,