From 351b30dae00eca6ca27dd30c36a1667c423c8682 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Fri, 20 May 2022 21:59:49 +0200 Subject: [PATCH] macro: Use C11 noreturn only No need to provide a fallback as we compile with gnu11. --- src/fundamental/macro-fundamental.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 083fca3e95..c612fef710 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -24,15 +24,7 @@ #else #define _fallthrough_ #endif -/* Define C11 noreturn without and even on older gcc - * compiler versions */ -#ifndef _noreturn_ -#if __STDC_VERSION__ >= 201112L #define _noreturn_ _Noreturn -#else -#define _noreturn_ __attribute__((__noreturn__)) -#endif -#endif #define XSTRINGIFY(x) #x #define STRINGIFY(x) XSTRINGIFY(x) -- 2.25.1