summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-08 13:07:22 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-08 13:07:22 +0200
commitea39176baab52b646d1e2676e662def718ddd365 (patch)
treeb7efd5049894e2dd699222f9614ffcf01e892480 /src/vim.h
parent4ac2e8d8e60dcc7dbff662e177b86ccfbda7cd9e (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.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/vim.h b/src/vim.h
index 78dede0cd7..626c0ad120 100644
--- 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 */