From 952d9d827e5bfc66a6b1d39956e4e5596b09e2bd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 2 Aug 2021 18:07:18 +0200 Subject: patch 8.2.3274: macro for printf format check can be simplified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Macro for printf format check can be simplified. Solution: Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pellé, issue #8635) --- src/gui_xim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui_xim.c') diff --git a/src/gui_xim.c b/src/gui_xim.c index 2dd6fd9159..2a12412dab 100644 --- a/src/gui_xim.c +++ b/src/gui_xim.c @@ -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, ...) { -- cgit v1.2.3