Mercurial > vim
comparison src/spellfile.c @ 13610:e76499e85744 v8.0.1677
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()
commit https://github.com/vim/vim/commit/ea39176baab52b646d1e2676e662def718ddd365
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 8 13:07:22 2018 +0200
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()
Problem: No compiler warning for wrong format in vim_snprintf().
Solution: Add printf attribute for gcc. Fix reported problems.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 08 Apr 2018 13:15:07 +0200 |
parents | ac42c4b11dbc |
children | 97814084264b |
comparison
equal
deleted
inserted
replaced
13609:67cb9088e452 | 13610:e76499e85744 |
---|---|
3647 /* This takes time, print a message every 10000 words. */ | 3647 /* This takes time, print a message every 10000 words. */ |
3648 if (spin->si_verbose && spin->si_msg_count > 10000) | 3648 if (spin->si_verbose && spin->si_msg_count > 10000) |
3649 { | 3649 { |
3650 spin->si_msg_count = 0; | 3650 spin->si_msg_count = 0; |
3651 vim_snprintf((char *)message, sizeof(message), | 3651 vim_snprintf((char *)message, sizeof(message), |
3652 _("line %6d, word %6d - %s"), | 3652 _("line %6d, word %6ld - %s"), |
3653 lnum, spin->si_foldwcount + spin->si_keepwcount, w); | 3653 lnum, spin->si_foldwcount + spin->si_keepwcount, w); |
3654 msg_start(); | 3654 msg_start(); |
3655 msg_puts_long_attr(message, 0); | 3655 msg_puts_long_attr(message, 0); |
3656 msg_clr_eos(); | 3656 msg_clr_eos(); |
3657 msg_didout = FALSE; | 3657 msg_didout = FALSE; |