summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/includes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index f7504dcf5d2..f4642cecb90 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -56,6 +56,18 @@
#endif
#endif
+#ifndef NORETURN_ATTRIBUTE
+#if (__GNUC__ >= 3)
+#define NORETURN_ATTRIBUTE __attribute__ ((noreturn))
+#else
+#define NORETURN_ATTRIBUTE
+#endif
+#endif
+
+/* mark smb_panic() as noreturn, so static analysers know that it is
+ used like abort */
+_PUBLIC_ void smb_panic(const char *why) NORETURN_ATTRIBUTE;
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>