Mercurial > vim
comparison src/gui_xim.c @ 25475:038eb6d9003a v8.2.3274
patch 8.2.3274: macro for printf format check can be simplified
Commit: https://github.com/vim/vim/commit/952d9d827e5bfc66a6b1d39956e4e5596b09e2bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 2 18:07:18 2021 +0200
patch 8.2.3274: macro for printf format check can be simplified
Problem: Macro for printf format check can be simplified.
Solution: Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pell?, issue https://github.com/vim/vim/issues/8635)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Aug 2021 18:15:06 +0200 |
parents | cb8b9bf76082 |
children | 8f17f8f327f3 |
comparison
equal
deleted
inserted
replaced
25474:c79b2530406a | 25475:038eb6d9003a |
---|---|
29 /* | 29 /* |
30 * XIM often causes trouble. Define XIM_DEBUG to get a log of XIM callbacks | 30 * XIM often causes trouble. Define XIM_DEBUG to get a log of XIM callbacks |
31 * in the "xim.log" file. | 31 * in the "xim.log" file. |
32 */ | 32 */ |
33 // #define XIM_DEBUG | 33 // #define XIM_DEBUG |
34 #ifdef XIM_DEBUG | 34 #if defined(XIM_DEBUG) && defined(FEAT_GUI_GTK) |
35 static void xim_log(char *s, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2); | |
36 | |
35 static void | 37 static void |
36 xim_log(char *s, ...) | 38 xim_log(char *s, ...) |
37 { | 39 { |
38 va_list arglist; | 40 va_list arglist; |
39 static FILE *fd = NULL; | 41 static FILE *fd = NULL; |