Mercurial > vim
comparison src/undo.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 | 69517d67421f |
children | de75c249723d |
comparison
equal
deleted
inserted
replaced
13609:67cb9088e452 | 13610:e76499e85744 |
---|---|
3027 if (uhp->uh_prev.ptr == NULL && uhp->uh_walk != nomark | 3027 if (uhp->uh_prev.ptr == NULL && uhp->uh_walk != nomark |
3028 && uhp->uh_walk != mark) | 3028 && uhp->uh_walk != mark) |
3029 { | 3029 { |
3030 if (ga_grow(&ga, 1) == FAIL) | 3030 if (ga_grow(&ga, 1) == FAIL) |
3031 break; | 3031 break; |
3032 vim_snprintf((char *)IObuff, IOSIZE, "%6ld %7ld ", | 3032 vim_snprintf((char *)IObuff, IOSIZE, "%6ld %7d ", |
3033 uhp->uh_seq, changes); | 3033 uhp->uh_seq, changes); |
3034 u_add_time(IObuff + STRLEN(IObuff), IOSIZE - STRLEN(IObuff), | 3034 u_add_time(IObuff + STRLEN(IObuff), IOSIZE - STRLEN(IObuff), |
3035 uhp->uh_time); | 3035 uhp->uh_time); |
3036 if (uhp->uh_save_nr > 0) | 3036 if (uhp->uh_save_nr > 0) |
3037 { | 3037 { |