Cleanup comma compiler warnings.

Found by Clang 3.9.0.

Signed-off-by: Andreas Mohr <and@gmx.li>
This commit is contained in:
Andreas Mohr 2016-12-06 11:05:53 +00:00 committed by Andrew Borodin
parent 04c1eb6160
commit 238d3ac53c
3 changed files with 8 additions and 4 deletions

View File

@ -2554,8 +2554,10 @@ edit_replace_cmd (WEdit * edit, gboolean again)
g_free (tmp_inp1); g_free (tmp_inp1);
g_free (tmp_inp2); g_free (tmp_inp2);
g_free (saved1), saved1 = g_strdup (input1); g_free (saved1);
g_free (saved2), saved2 = g_strdup (input2); saved1 = g_strdup (input1);
g_free (saved2);
saved2 = g_strdup (input2);
mc_search_free (edit->search); mc_search_free (edit->search);
edit->search = NULL; edit->search = NULL;

View File

@ -473,7 +473,8 @@ ilog10 (dev_t n)
do do
{ {
digits++, n /= 10; digits++;
n /= 10;
} }
while (n != 0); while (n != 0);

View File

@ -234,7 +234,8 @@ mcview_done (WView * view)
mcview_close_datasource (view); mcview_close_datasource (view);
/* the growing buffer is freed with the datasource */ /* the growing buffer is freed with the datasource */
coord_cache_free (view->coord_cache), view->coord_cache = NULL; coord_cache_free (view->coord_cache);
view->coord_cache = NULL;
if (view->converter == INVALID_CONV) if (view->converter == INVALID_CONV)
view->converter = str_cnv_from_term; view->converter = str_cnv_from_term;