1
0
forked from aniani/vim

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 #8635)
This commit is contained in:
Bram Moolenaar
2021-08-02 18:07:18 +02:00
parent 1321257317
commit 952d9d827e
11 changed files with 38 additions and 67 deletions

View File

@@ -31,7 +31,9 @@
* in the "xim.log" file.
*/
// #define XIM_DEBUG
#ifdef XIM_DEBUG
#if defined(XIM_DEBUG) && defined(FEAT_GUI_GTK)
static void xim_log(char *s, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);
static void
xim_log(char *s, ...)
{