comparison src/ex_cmds.c @ 2545:298d8d6e69be vim73

Avoid warnings from the clang compiler. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Fri, 13 Aug 2010 11:18:02 +0200
parents a3aca345aafa
children 7c2e6ba1d702
comparison
equal deleted inserted replaced
2544:20e83abf88b1 2545:298d8d6e69be
2078 if (fp_out != NULL) 2078 if (fp_out != NULL)
2079 { 2079 {
2080 /* Write the info: */ 2080 /* Write the info: */
2081 fprintf(fp_out, _("# This viminfo file was generated by Vim %s.\n"), 2081 fprintf(fp_out, _("# This viminfo file was generated by Vim %s.\n"),
2082 VIM_VERSION_MEDIUM); 2082 VIM_VERSION_MEDIUM);
2083 fprintf(fp_out, _("# You may edit it if you're careful!\n\n")); 2083 fputs(_("# You may edit it if you're careful!\n\n"), fp_out);
2084 #ifdef FEAT_MBYTE 2084 #ifdef FEAT_MBYTE
2085 fprintf(fp_out, _("# Value of 'encoding' when this file was written\n")); 2085 fputs(_("# Value of 'encoding' when this file was written\n"), fp_out);
2086 fprintf(fp_out, "*encoding=%s\n\n", p_enc); 2086 fprintf(fp_out, "*encoding=%s\n\n", p_enc);
2087 #endif 2087 #endif
2088 write_viminfo_search_pattern(fp_out); 2088 write_viminfo_search_pattern(fp_out);
2089 write_viminfo_sub_string(fp_out); 2089 write_viminfo_sub_string(fp_out);
2090 #ifdef FEAT_CMDHIST 2090 #ifdef FEAT_CMDHIST
5420 write_viminfo_sub_string(fp) 5420 write_viminfo_sub_string(fp)
5421 FILE *fp; 5421 FILE *fp;
5422 { 5422 {
5423 if (get_viminfo_parameter('/') != 0 && old_sub != NULL) 5423 if (get_viminfo_parameter('/') != 0 && old_sub != NULL)
5424 { 5424 {
5425 fprintf(fp, _("\n# Last Substitute String:\n$")); 5425 fputs(_("\n# Last Substitute String:\n$"), fp);
5426 viminfo_writestring(fp, old_sub); 5426 viminfo_writestring(fp, old_sub);
5427 } 5427 }
5428 } 5428 }
5429 #endif /* FEAT_VIMINFO */ 5429 #endif /* FEAT_VIMINFO */
5430 5430