mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
add func_attr_printf in :
log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user