Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
13609:67cb9088e452 | 13610:e76499e85744 |
---|---|
2547 /* flags for term_start() */ | 2547 /* flags for term_start() */ |
2548 #define TERM_START_NOJOB 1 | 2548 #define TERM_START_NOJOB 1 |
2549 #define TERM_START_FORCEIT 2 | 2549 #define TERM_START_FORCEIT 2 |
2550 #define TERM_START_SYSTEM 4 | 2550 #define TERM_START_SYSTEM 4 |
2551 | 2551 |
2552 /* Not generated automatically, to add extra attribute. */ | |
2553 void ch_log(channel_T *ch, const char *fmt, ...) | |
2554 #ifdef __GNUC__ | |
2555 __attribute__((format(printf, 2, 3))) | |
2556 #endif | |
2557 ; | |
2558 | |
2559 #endif /* VIM__H */ | 2552 #endif /* VIM__H */ |