diff options
author | ichizok <gclient.gaap@gmail.com> | 2022-01-07 20:01:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-07 20:01:07 +0000 |
commit | e12406526a24768e6121450112eb2f9f92445ac5 (patch) | |
tree | f1b210d11d09b73638174dfa212eab2a9287e747 /src/vim.h | |
parent | d1f34e64f0e1a9ddaed76623bc40e669f2d09260 (diff) |
patch 8.2.4032: ATTRIBUTE_NORETURN is not neededv8.2.4032
Problem: ATTRIBUTE_NORETURN is not needed.
Solution: Use NORETURN(). (Ozaki Kiichi, closes #9487)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -2178,15 +2178,13 @@ typedef struct stat stat_T; #endif #if defined(__GNUC__) || defined(__clang__) -# define likely(x) __builtin_expect((x), 1) -# define unlikely(x) __builtin_expect((x), 0) -# define ATTRIBUTE_COLD __attribute__((cold)) -# define ATTRIBUTE_NORETURN __attribute__((noreturn)) +# define likely(x) __builtin_expect((x), 1) +# define unlikely(x) __builtin_expect((x), 0) +# define ATTRIBUTE_COLD __attribute__((cold)) #else # define unlikely(x) (x) # define likely(x) (x) # define ATTRIBUTE_COLD -# define ATTRIBUTE_NORETURN #endif typedef enum { |