comparison src/vim9compile.c @ 19760:9daed26b788b v8.2.0436

patch 8.2.0436: no warnings for incorrect printf arguments Commit: https://github.com/vim/vim/commit/db99f9f29a248b84742b6779c3343123f72065e7 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 23 22:12:22 2020 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Mar 2020 22:15:05 +0100
parents ad37a198a708
children 99248f0ff29d
comparison
equal deleted inserted replaced
19759:321ee36ae10c 19760:9daed26b788b
1828 { 1828 {
1829 res = compile_load_scriptvar(cctx, name, NULL, NULL, error); 1829 res = compile_load_scriptvar(cctx, name, NULL, NULL, error);
1830 } 1830 }
1831 else 1831 else
1832 { 1832 {
1833 semsg("Namespace not supported yet: %s", **arg); 1833 semsg("Namespace not supported yet: %s", *arg);
1834 goto theend; 1834 goto theend;
1835 } 1835 }
1836 } 1836 }
1837 else 1837 else
1838 { 1838 {
2211 return FAIL; 2211 return FAIL;
2212 2212
2213 if (**arg != '(') 2213 if (**arg != '(')
2214 { 2214 {
2215 if (*skipwhite(*arg) == '(') 2215 if (*skipwhite(*arg) == '(')
2216 semsg(_(e_nowhitespace)); 2216 emsg(_(e_nowhitespace));
2217 else 2217 else
2218 semsg(_(e_missing_paren), "lambda"); 2218 semsg(_(e_missing_paren), "lambda");
2219 clear_tv(&rettv); 2219 clear_tv(&rettv);
2220 return FAIL; 2220 return FAIL;
2221 } 2221 }