aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-23 14:54:55 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-23 14:54:55 +0000
commit3eb51a655f248ae545f0a41a055a299b737f6b73 (patch)
treebd5cc0d8ec9dfc52015124589b44426e69315bf8 /src/include/gnunet_common.h
parent1a6bf24e5dca8f15965bca96f7c0063525564858 (diff)
downloadgnunet-3eb51a655f248ae545f0a41a055a299b737f6b73.tar.gz
gnunet-3eb51a655f248ae545f0a41a055a299b737f6b73.zip
use noreturn macro for GNUNET_abort to help gcc and others
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r--src/include/gnunet_common.h7
1 files changed, 6 insertions, 1 deletions
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 @@
116 */ 116 */
117#define GNUNET_UNUSED __attribute__((unused)) 117#define GNUNET_UNUSED __attribute__((unused))
118 118
119/**
120 * gcc-ism to document functions that don't return
121 */
122#define GNUNET_NORETURN __attribute__((noreturn))
123
119#if __GNUC__ > 3 124#if __GNUC__ > 3
120/** 125/**
121 * gcc 4.x-ism to pack structures even on W32 (to be used before structs) 126 * 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,
319 * Abort the process, generate a core dump if possible. 324 * Abort the process, generate a core dump if possible.
320 */ 325 */
321void 326void
322GNUNET_abort (void); 327GNUNET_abort (void) GNUNET_NORETURN;
323 328
324/** 329/**
325 * Ignore the next n calls to the log function. 330 * Ignore the next n calls to the log function.