From: Christian Grothoff Date: Mon, 23 Jan 2012 14:54:55 +0000 (+0000) Subject: use noreturn macro for GNUNET_abort to help gcc and others X-Git-Tag: initial-import-from-subversion-38251~15168 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3eb51a655f248ae545f0a41a055a299b737f6b73;p=oweals%2Fgnunet.git use noreturn macro for GNUNET_abort to help gcc and others --- diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 76b26ddff..7c587a782 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -116,6 +116,11 @@ */ #define GNUNET_UNUSED __attribute__((unused)) +/** + * gcc-ism to document functions that don't return + */ +#define GNUNET_NORETURN __attribute__((noreturn)) + #if __GNUC__ > 3 /** * gcc 4.x-ism to pack structures even on W32 (to be used before structs) @@ -319,7 +324,7 @@ GNUNET_log_from_nocheck (enum GNUNET_ErrorType kind, const char *comp, * Abort the process, generate a core dump if possible. */ void -GNUNET_abort (void); +GNUNET_abort (void) GNUNET_NORETURN; /** * Ignore the next n calls to the log function.