config.h: implemented `NORETURN` for GCC < 5 (#4361)

This commit is contained in:
Oliver Stöneberg 2022-08-16 06:52:54 +02:00 committed by GitHub
parent 4bf5dcd29f
commit 38c7d0a5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@
|| defined(__clang__) \ || defined(__clang__) \
|| defined(__CPPCHECK__) || defined(__CPPCHECK__)
# define NORETURN [[noreturn]] # define NORETURN [[noreturn]]
#elif defined(__GNUC__)
# define NORETURN __attribute__((noreturn))
#else #else
# define NORETURN # define NORETURN
#endif #endif