mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4032: ATTRIBUTE_NORETURN is not needed
Problem: ATTRIBUTE_NORETURN is not needed. Solution: Use NORETURN(). (Ozaki Kiichi, closes #9487)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user