mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +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:
@@ -103,7 +103,7 @@ void log_unlock(void)
|
||||
/// @param line_num source line number, or -1
|
||||
bool logmsg(int log_level, const char *context, const char *func_name,
|
||||
int line_num, bool eol, const char *fmt, ...)
|
||||
FUNC_ATTR_UNUSED
|
||||
FUNC_ATTR_UNUSED FUNC_ATTR_PRINTF(6, 7)
|
||||
{
|
||||
if (log_level < MIN_LOG_LEVEL) {
|
||||
return false;
|
||||
@@ -240,6 +240,7 @@ end:
|
||||
static bool do_log_to_file(FILE *log_file, int log_level, const char *context,
|
||||
const char *func_name, int line_num, bool eol,
|
||||
const char* fmt, ...)
|
||||
FUNC_ATTR_PRINTF(7, 8)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
Reference in New Issue
Block a user