mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Add more ATTRIB_NORETURN annotations, from Thorsten Horstmann
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user