From: James Turner Date: Tue, 12 Jan 2016 18:48:34 +0000 (-0600) Subject: Allow use of noreturn attribute with Clang X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=096d625445c982a2c4b169c4493c71d0e10485f4;p=simgear.git Allow use of noreturn attribute with Clang - other compilers could also be enabled in the future. --- diff --git a/simgear/compiler.h b/simgear/compiler.h index 2686ea1f..795747d5 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -190,6 +190,12 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); } # define DEPRECATED #endif +#if defined(__clang__) +# define SG_NO_RETURN [[noreturn]] +#else +# define SG_NO_RETURN +#endif + // // No user modifiable definitions beyond here. //