From 74ce0225b5cd668a74faabcbe5ad75839a991c52 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 15 Nov 2015 11:49:21 +0100 Subject: [PATCH] Tweak cdefs.h (no functional change) This check was bothering me so I tighted it up. We should think about removing all these GNUC version checks for at least GCC 4.2.1 and below. I suspect DF will not build with less than GCC 4.4 in any case, but certainly GCC 3 and below could never be used, so these definitions that depend on GCC 2, 3 will never fail thus they should be set uncondionally to clean this header up. --- sys/sys/cdefs.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index af2d38f991..5f5e8cbc68 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -177,12 +177,6 @@ #else -#if !__GNUC_PREREQ__(2, 7) -#define __dead2 -#define __pure2 -#define __unused -#endif - #if __GNUC_PREREQ__(2, 7) #define __dead2 __attribute__((__noreturn__)) #define __pure2 __attribute__((__const__)) @@ -190,6 +184,10 @@ #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) +#else +#define __dead2 +#define __pure2 +#define __unused #endif #if __GNUC_PREREQ__(2, 96) -- 2.41.0