0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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

@@ -22,14 +22,6 @@
#include "vim9.h"
#if defined(__GNUC__) || defined(__clang__)
# define likely(x) __builtin_expect((x), 1)
# define unlikely(x) __builtin_expect((x), 0)
#else
# define unlikely(x) (x)
# define likely(x) (x)
#endif
// Structure put on ec_trystack when ISN_TRY is encountered.
typedef struct {
int tcd_frame_idx; // ec_frame_idx at ISN_TRY