Ticket #3426: mc-fix-wmaybe-uninitialized-warning.patch
File mc-fix-wmaybe-uninitialized-warning.patch, 1.2 KB (added by and, 10 years ago) |
---|
-
m4.include/mc-cflags.m4
fix -Wmaybe-uninitialized compiler warnings and use compiler option for future compiles since gcc 4.7 Signed-off-by: Andreas Mohr <and@gmx.li>
a b 52 52 MC_CHECK_ONE_CFLAG([-Wformat-security]) 53 53 MC_CHECK_ONE_CFLAG([-Wimplicit]) 54 54 MC_CHECK_ONE_CFLAG([-Wignored-qualifiers]) 55 MC_CHECK_ONE_CFLAG([-Wmaybe-uninitialized]) 55 56 MC_CHECK_ONE_CFLAG([-Wmissing-braces]) 56 57 MC_CHECK_ONE_CFLAG([-Wmissing-declarations]) 57 58 MC_CHECK_ONE_CFLAG([-Wmissing-parameter-type]) -
src/diffviewer/ydiff.c
a b 2616 2616 #ifdef HAVE_CHARSET 2617 2617 if (dview->utf8) 2618 2618 { 2619 int ch_len ;2619 int ch_len = 0; 2620 2620 2621 2621 next_ch = dview_get_utf (buf + cnt, &ch_len, &ch_res); 2622 2622 if (ch_len > 1) … … 2693 2693 #ifdef HAVE_CHARSET 2694 2694 if (dview->utf8) 2695 2695 { 2696 int ch_len ;2696 int ch_len = 0; 2697 2697 2698 2698 next_ch = dview_get_utf (buf + cnt, &ch_len, &ch_res); 2699 2699 if (ch_len > 1)