gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19329 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r19329 - gnunet/src/include
Date: Mon, 23 Jan 2012 15:54:55 +0100

Author: grothoff
Date: 2012-01-23 15:54:55 +0100 (Mon, 23 Jan 2012)
New Revision: 19329

Modified:
   gnunet/src/include/gnunet_common.h
Log:
use noreturn macro for GNUNET_abort to help gcc and others

Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h  2012-01-23 14:27:18 UTC (rev 19328)
+++ gnunet/src/include/gnunet_common.h  2012-01-23 14:54:55 UTC (rev 19329)
@@ -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 @@
  * 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]