diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-02 18:07:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-02 18:07:18 +0200 |
commit | 952d9d827e5bfc66a6b1d39956e4e5596b09e2bd (patch) | |
tree | 0b2581eeaec39b6bad25b58f537d8ea1e893b79c /src/if_mzsch.c | |
parent | 1321257317b7d28228a6a9a0d612f81f70290b4c (diff) | |
download | vim-git-952d9d827e5bfc66a6b1d39956e4e5596b09e2bd.tar.gz |
patch 8.2.3274: macro for printf format check can be simplifiedv8.2.3274
Problem: Macro for printf format check can be simplified.
Solution: Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pellé, issue #8635)
Diffstat (limited to 'src/if_mzsch.c')
-rw-r--r-- | src/if_mzsch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_mzsch.c b/src/if_mzsch.c index c8be940bc..57b593a19 100644 --- a/src/if_mzsch.c +++ b/src/if_mzsch.c @@ -139,7 +139,7 @@ static char *string_to_line(Scheme_Object *obj); # define OUTPUT_LEN_TYPE long #endif static void do_output(char *mesg, OUTPUT_LEN_TYPE len); -static void do_printf(char *format, ...); +static void do_printf(char *format, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2); static void do_flush(void); static Scheme_Object *_apply_thunk_catch_exceptions( Scheme_Object *, Scheme_Object **); |