From 38c7d0a5f87f9c1004e338701eeb91a6abe5b068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 16 Aug 2022 06:52:54 +0200 Subject: [PATCH] config.h: implemented `NORETURN` for GCC < 5 (#4361) --- lib/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/config.h b/lib/config.h index ecc5d4871..6ee1ab024 100644 --- a/lib/config.h +++ b/lib/config.h @@ -51,6 +51,8 @@ || defined(__clang__) \ || defined(__CPPCHECK__) # define NORETURN [[noreturn]] +#elif defined(__GNUC__) +# define NORETURN __attribute__((noreturn)) #else # define NORETURN #endif