Mercurial > dropbear
diff libtomcrypt/src/headers/tomcrypt_argchk.h @ 1069:2fa71c3b2827 pam
merge pam branch up to date
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 16 Mar 2015 21:34:05 +0800 |
parents | 38d2f6b2d1b8 |
children | f849a5ca2efc |
line wrap: on
line diff
--- a/libtomcrypt/src/headers/tomcrypt_argchk.h Fri Jan 23 22:32:49 2015 +0800 +++ b/libtomcrypt/src/headers/tomcrypt_argchk.h Mon Mar 16 21:34:05 2015 +0800 @@ -4,8 +4,16 @@ #include <signal.h> +/* portability macros for compiler-specific code attributes */ +#ifdef __GNUC__ +#define ATTRIB_NORETURN __attribute__((noreturn)) +#else +#define ATTRIB_NORETURN +#endif + + /* this is the default LibTomCrypt macro */ -void crypt_argchk(char *v, char *s, int d); +void crypt_argchk(char *v, char *s, int d) ATTRIB_NORETURN; #define LTC_ARGCHK(x) if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); } #define LTC_ARGCHKVD(x) LTC_ARGCHK(x)