Mercurial > vim
diff src/vim.h @ 13610:e76499e85744 v8.0.1677
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()
commit https://github.com/vim/vim/commit/ea39176baab52b646d1e2676e662def718ddd365
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 8 13:07:22 2018 +0200
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()
Problem: No compiler warning for wrong format in vim_snprintf().
Solution: Add printf attribute for gcc. Fix reported problems.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 08 Apr 2018 13:15:07 +0200 |
parents | 2a2b668cf24c |
children | ea4f2a8040b4 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -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 */