Mercurial > vim
comparison src/vim.h @ 27006:686fa1164724 v8.2.4032
patch 8.2.4032: ATTRIBUTE_NORETURN is not needed
Commit: https://github.com/vim/vim/commit/e12406526a24768e6121450112eb2f9f92445ac5
Author: ichizok <gclient.gaap@gmail.com>
Date: Fri Jan 7 20:01:07 2022 +0000
patch 8.2.4032: ATTRIBUTE_NORETURN is not needed
Problem: ATTRIBUTE_NORETURN is not needed.
Solution: Use NORETURN(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9487)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jan 2022 21:15:03 +0100 |
parents | fb67cd7d30a7 |
children | 1af5263a4509 |
comparison
equal
deleted
inserted
replaced
27005:c0647304fb69 | 27006:686fa1164724 |
---|---|
2176 #else | 2176 #else |
2177 # define ATTRIBUTE_FORMAT_PRINTF(fmt_idx, arg_idx) | 2177 # define ATTRIBUTE_FORMAT_PRINTF(fmt_idx, arg_idx) |
2178 #endif | 2178 #endif |
2179 | 2179 |
2180 #if defined(__GNUC__) || defined(__clang__) | 2180 #if defined(__GNUC__) || defined(__clang__) |
2181 # define likely(x) __builtin_expect((x), 1) | 2181 # define likely(x) __builtin_expect((x), 1) |
2182 # define unlikely(x) __builtin_expect((x), 0) | 2182 # define unlikely(x) __builtin_expect((x), 0) |
2183 # define ATTRIBUTE_COLD __attribute__((cold)) | 2183 # define ATTRIBUTE_COLD __attribute__((cold)) |
2184 # define ATTRIBUTE_NORETURN __attribute__((noreturn)) | |
2185 #else | 2184 #else |
2186 # define unlikely(x) (x) | 2185 # define unlikely(x) (x) |
2187 # define likely(x) (x) | 2186 # define likely(x) (x) |
2188 # define ATTRIBUTE_COLD | 2187 # define ATTRIBUTE_COLD |
2189 # define ATTRIBUTE_NORETURN | |
2190 #endif | 2188 #endif |
2191 | 2189 |
2192 typedef enum { | 2190 typedef enum { |
2193 ASSERT_EQUAL, | 2191 ASSERT_EQUAL, |
2194 ASSERT_NOTEQUAL, | 2192 ASSERT_NOTEQUAL, |