diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-07 19:36:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-07 19:36:01 +0200 |
| commit | 512e0caae2e5ea507608588b645b723fc4b4f9c3 (patch) | |
| tree | 8f36a6d3008dc5a1b4f71d1aa359886484a85cd4 /src/nvim/strings.c | |
| parent | f95e0ae92644d3695e9207ecfe8f5bea17594459 (diff) | |
| parent | 2c84421de2e36b0e7e8d406d491d57c1b599fd30 (diff) | |
| download | rneovim-512e0caae2e5ea507608588b645b723fc4b4f9c3.tar.gz rneovim-512e0caae2e5ea507608588b645b723fc4b4f9c3.tar.bz2 rneovim-512e0caae2e5ea507608588b645b723fc4b4f9c3.zip | |
Merge #9036 'func_attr_printf'
Diffstat (limited to 'src/nvim/strings.c')
| -rw-r--r-- | src/nvim/strings.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 17c4a75a64..3b0a950ff2 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -693,6 +693,7 @@ static float_T tv_float(typval_T *const tvs, int *const idxp) /// /// @see vim_vsnprintf(). int vim_snprintf_add(char *str, size_t str_m, char *fmt, ...) + FUNC_ATTR_PRINTF(3, 4) { const size_t len = strlen(str); size_t space; @@ -718,6 +719,7 @@ int vim_snprintf_add(char *str, size_t str_m, char *fmt, ...) /// @return Number of bytes excluding NUL byte that would be written to the /// string if str_m was greater or equal to the return value. int vim_snprintf(char *str, size_t str_m, const char *fmt, ...) + FUNC_ATTR_PRINTF(3, 4) { va_list ap; va_start(ap, fmt); |
