diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-08 13:07:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-08 13:07:22 +0200 |
commit | ea39176baab52b646d1e2676e662def718ddd365 (patch) | |
tree | b7efd5049894e2dd699222f9614ffcf01e892480 /src/vim.h | |
parent | 4ac2e8d8e60dcc7dbff662e177b86ccfbda7cd9e (diff) |
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()v8.0.1677
Problem: No compiler warning for wrong format in vim_snprintf().
Solution: Add printf attribute for gcc. Fix reported problems.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -2549,11 +2549,4 @@ typedef enum { #define TERM_START_FORCEIT 2 #define TERM_START_SYSTEM 4 -/* Not generated automatically, to add extra attribute. */ -void ch_log(channel_T *ch, const char *fmt, ...) -#ifdef __GNUC__ -__attribute__((format(printf, 2, 3))) -#endif -; - #endif /* VIM__H */ |