1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Clang warnings for dead code.
12 Solution: Remove it. (Carlo Teubner)
13 Files: src/gui_gtk.c, src/if_ruby.c, src/misc2.c, src/netbeans.c,
17 *** ../vim-7.3.075/src/gui_gtk.c 2010-11-24 18:48:08.000000000 +0100
18 --- src/gui_gtk.c 2010-12-08 12:25:17.000000000 +0100
22 gboolean direction_down;
23 SharedFindReplace *sfr;
26 flags = (int)(long)data; /* avoid a lint warning here */
32 repl_text = CONVERT_FROM_UTF8(repl_text);
33 find_text = CONVERT_FROM_UTF8(find_text);
34 ! rc = gui_do_findrepl(flags, find_text, repl_text, direction_down);
35 CONVERT_FROM_UTF8_FREE(repl_text);
36 CONVERT_FROM_UTF8_FREE(find_text);
40 repl_text = CONVERT_FROM_UTF8(repl_text);
41 find_text = CONVERT_FROM_UTF8(find_text);
42 ! gui_do_findrepl(flags, find_text, repl_text, direction_down);
43 CONVERT_FROM_UTF8_FREE(repl_text);
44 CONVERT_FROM_UTF8_FREE(find_text);
46 *** ../vim-7.3.075/src/if_ruby.c 2010-11-24 17:03:34.000000000 +0100
47 --- src/if_ruby.c 2010-12-08 12:30:38.000000000 +0100
50 if (u_save(eap->line1 - 1, eap->line2 + 1) != OK)
52 for (i = eap->line1; i <= eap->line2; i++) {
53 ! VALUE line, oldline;
55 ! line = oldline = vim_str2rb_enc_str((char *)ml_get(i));
56 rb_lastline_set(line);
57 eval_enc_string_protect((char *) eap->arg, &state);
60 if (u_save(eap->line1 - 1, eap->line2 + 1) != OK)
62 for (i = eap->line1; i <= eap->line2; i++) {
65 ! line = vim_str2rb_enc_str((char *)ml_get(i));
66 rb_lastline_set(line);
67 eval_enc_string_protect((char *) eap->arg, &state);
69 *** ../vim-7.3.075/src/misc2.c 2010-08-15 21:57:32.000000000 +0200
70 --- src/misc2.c 2010-12-08 12:42:44.000000000 +0100
78 while (col <= wcol && *ptr != NUL)
86 ! * copy a string into newly allocated memory
94 ! * Copy "string" into newly allocated memory.
105 + * Copy up to "len" bytes of "string" into newly allocated memory and
106 + * terminate with a NUL.
107 + * The allocated memory always has size "len + 1", also when "string" is
111 vim_strnsave(string, len)
113 *** ../vim-7.3.075/src/netbeans.c 2010-12-02 17:09:48.000000000 +0100
114 --- src/netbeans.c 2010-12-08 12:43:57.000000000 +0100
117 keyQ_T *key_node = keyHead.next;
118 queue_T *cmd_node = head.next;
123 /* free the netbeans buffer list */
128 vim_free(buf.displayname);
129 vim_free(buf.signmap);
130 ! if ((bufp=buf.bufp) != NULL)
132 buf.bufp->b_netbeans_file = FALSE;
133 buf.bufp->b_was_netbeans_file = FALSE;
136 vim_free(buf.displayname);
137 vim_free(buf.signmap);
138 ! if (buf.bufp != NULL)
140 buf.bufp->b_netbeans_file = FALSE;
141 buf.bufp->b_was_netbeans_file = FALSE;
142 *** ../vim-7.3.075/src/spell.c 2010-09-29 18:32:47.000000000 +0200
143 --- src/spell.c 2010-12-08 12:47:13.000000000 +0100
147 /* be quick for ASCII */
148 if (wp->w_s->b_spell_ismw[*p])
150 s = p + 1; /* skip a mid-word character */
151 - l = MB_BYTE2LEN(*s);
159 if (c < 256 ? wp->w_s->b_spell_ismw[c]
160 : (wp->w_s->b_spell_ismw_mb != NULL
161 && vim_strchr(wp->w_s->b_spell_ismw_mb, c) != NULL))
164 - l = MB_BYTE2LEN(*s);
172 su->su_sfmaxscore = cleanup_suggestions(gap,
173 su->su_sfmaxscore, SUG_CLEAN_COUNT(su));
176 - i = su->su_maxscore;
177 su->su_maxscore = cleanup_suggestions(gap,
178 su->su_maxscore, SUG_CLEAN_COUNT(su));
184 *** ../vim-7.3.075/src/version.c 2010-12-02 21:44:35.000000000 +0100
185 --- src/version.c 2010-12-08 13:10:00.000000000 +0100
189 { /* Add new patch number below this line */
195 Never enter the boss's office unless it's absolutely necessary. Every boss
196 saves one corner of the desk for useless assignments that are doled out like
197 Halloween candy to each visitor.
198 (Scott Adams - The Dilbert principle)
200 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
201 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
202 \\\ an exciting new programming language -- http://www.Zimbu.org ///
203 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///