mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +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:
@@ -884,7 +884,7 @@ static int shada_read_file(const char *const file, const int flags)
|
||||
|
||||
if (p_verbose > 0) {
|
||||
verbose_enter();
|
||||
smsg(_("Reading ShaDa file \"%s\"%s%s%s"),
|
||||
smsg(_("Reading ShaDa file \"%s\"%s%s%s%s"),
|
||||
fname,
|
||||
(flags & kShaDaWantInfo) ? _(" info") : "",
|
||||
(flags & kShaDaWantMarks) ? _(" marks") : "",
|
||||
@@ -2033,7 +2033,7 @@ static const char *shada_format_entry(const ShadaEntry entry)
|
||||
{
|
||||
static char ret[1024];
|
||||
ret[0] = 0;
|
||||
vim_snprintf(S_LEN(ret), "[ ] ts=%" PRIu64 " ");
|
||||
vim_snprintf(S_LEN(ret), "%s", "[ ] ts=%" PRIu64 " ");
|
||||
// ^ Space for `can_free_entry`
|
||||
switch (entry.type) {
|
||||
case kSDItemMissing: {
|
||||
@@ -2091,7 +2091,7 @@ static const char *shada_format_entry(const ShadaEntry entry)
|
||||
entry.data.filemark.mark.lnum, \
|
||||
entry.data.filemark.mark.col, \
|
||||
entry.data.filemark.mark.coladd, \
|
||||
entry.data.filemark.additional_data, \
|
||||
(void*)entry.data.filemark.additional_data, \
|
||||
ad_len, \
|
||||
ad); \
|
||||
} while (0)
|
||||
|
Reference in New Issue
Block a user