comparison src/main.c @ 6923:9a13e3910e3d v7.4.780

patch 7.4.780 Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static.
author Bram Moolenaar <bram@vim.org>
date Sun, 12 Jul 2015 16:21:23 +0200
parents 63ac0cdf3b28
children 08e62c4fc17d
comparison
equal deleted inserted replaced
6922:681921dee50d 6923:9a13e3910e3d
1067 int noexmode; /* TRUE when return on entering Ex mode */ 1067 int noexmode; /* TRUE when return on entering Ex mode */
1068 { 1068 {
1069 oparg_T oa; /* operator arguments */ 1069 oparg_T oa; /* operator arguments */
1070 volatile int previous_got_int = FALSE; /* "got_int" was TRUE */ 1070 volatile int previous_got_int = FALSE; /* "got_int" was TRUE */
1071 #ifdef FEAT_CONCEAL 1071 #ifdef FEAT_CONCEAL
1072 linenr_T conceal_old_cursor_line = 0; 1072 /* these are static to avoid a compiler warning */
1073 linenr_T conceal_new_cursor_line = 0; 1073 static linenr_T conceal_old_cursor_line = 0;
1074 int conceal_update_lines = FALSE; 1074 static linenr_T conceal_new_cursor_line = 0;
1075 static int conceal_update_lines = FALSE;
1075 #endif 1076 #endif
1076 1077
1077 #if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) 1078 #if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)
1078 /* Setup to catch a terminating error from the X server. Just ignore 1079 /* Setup to catch a terminating error from the X server. Just ignore
1079 * it, restore the state and continue. This might not always work 1080 * it, restore the state and continue. This might not always work