From 90848b059b0cb2dc1d1f257e7dd2b9d745b83e35 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 24 Aug 2019 00:20:53 +0100 Subject: Use C11/Gnulib's _Noreturn * lib/cleanup.c (sighandler): Declare as _Noreturn. * src/man.c (gripe_converting_name): Use _Noreturn rather than ATTRIBUTE_NORETURN. * include/manconfig.h.in (ATTRIBUTE_NORETURN): Remove. --- include/manconfig.h.in | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include') diff --git a/include/manconfig.h.in b/include/manconfig.h.in index 163d5717..9281f1c2 100644 --- a/include/manconfig.h.in +++ b/include/manconfig.h.in @@ -261,13 +261,6 @@ # define ATTRIBUTE_UNUSED #endif -/* Does this compiler support marking functions as non-returning? */ -#if GNUC_PREREQ(2,5) -# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) -#else -# define ATTRIBUTE_NORETURN -#endif - /* Does this compiler support malloc return checking? */ #if GNUC_PREREQ(2,96) # define ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) -- cgit v1.2.3