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/channel.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/channel.c')
-rw-r--r-- | src/channel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/channel.c b/src/channel.c index 5307792e8..47c742d83 100644 --- a/src/channel.c +++ b/src/channel.c @@ -229,11 +229,7 @@ ch_log(channel_T *ch, const char *fmt, ...) #endif static void -ch_error(channel_T *ch, const char *fmt, ...) -#ifdef USE_PRINTF_FORMAT_ATTRIBUTE - __attribute__((format(printf, 2, 3))) -#endif - ; +ch_error(channel_T *ch, const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(2, 3); static void ch_error(channel_T *ch, const char *fmt, ...) |