0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.0944: format of nbdbg() arguments is not checked

Problem:    Format of nbdbg() arguments is not checked.
Solution:   Add format attribute.  Fix reported problems. (Dominique Pelle,
            closes #3992)
This commit is contained in:
Bram Moolenaar
2019-02-17 19:12:21 +01:00
parent 749f07c0db
commit c85c8fcb9f
3 changed files with 12 additions and 6 deletions

View File

@@ -42,7 +42,11 @@ typedef enum {
} WtWait;
void nbdbg(char *, ...);
void nbdbg(char *, ...)
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
__attribute__((format(printf, 1, 2)))
#endif
;
void nbdebug_wait(u_int wait_flags, char *wait_var, u_int wait_secs);
void nbdebug_log_init(char *log_var, char *level_var);