0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0436: no warnings for incorrect printf arguments

Problem:    No warnings for incorrect printf arguments.
Solution:   Fix attribute in declaration.  Fix uncovered mistakes. (Dominique
            Pelle, closes #5834)
This commit is contained in:
Bram Moolenaar
2020-03-23 22:12:22 +01:00
parent dbbb0ef729
commit db99f9f29a
9 changed files with 32 additions and 30 deletions

View File

@@ -1830,7 +1830,7 @@ compile_load(char_u **arg, char_u *end_arg, cctx_T *cctx, int error)
}
else
{
semsg("Namespace not supported yet: %s", **arg);
semsg("Namespace not supported yet: %s", *arg);
goto theend;
}
}
@@ -2213,7 +2213,7 @@ compile_lambda_call(char_u **arg, cctx_T *cctx)
if (**arg != '(')
{
if (*skipwhite(*arg) == '(')
semsg(_(e_nowhitespace));
emsg(_(e_nowhitespace));
else
semsg(_(e_missing_paren), "lambda");
clear_tv(&rettv);