diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-08 13:07:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-08 13:07:22 +0200 |
commit | ea39176baab52b646d1e2676e662def718ddd365 (patch) | |
tree | b7efd5049894e2dd699222f9614ffcf01e892480 /src/fileio.c | |
parent | 4ac2e8d8e60dcc7dbff662e177b86ccfbda7cd9e (diff) | |
download | vim-git-ea39176baab52b646d1e2676e662def718ddd365.tar.gz |
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()v8.0.1677
Problem: No compiler warning for wrong format in vim_snprintf().
Solution: Add printf attribute for gcc. Fix reported problems.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index e2fa3e22b..4f35cb965 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -5315,7 +5315,7 @@ msg_add_lines( *p++ = ' '; if (shortmess(SHM_LINES)) vim_snprintf((char *)p, IOSIZE - (p - IObuff), - "%ldL, %lldC", lnum, (varnumber_T)nchars); + "%ldL, %lldC", lnum, (long long)nchars); else { if (lnum == 1) @@ -5327,7 +5327,7 @@ msg_add_lines( STRCPY(p, _("1 character")); else vim_snprintf((char *)p, IOSIZE - (p - IObuff), - _("%lld characters"), (varnumber_T)nchars); + _("%lld characters"), (long long)nchars); } } |