summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-28 15:50:13 +0000
committerJeremy Allison <jra@samba.org>2006-03-28 15:50:13 +0000
commitd968c22341733d777217dbb756cb18b1e0655f2c (patch)
treee25d16748e59f18edcb824ba8e5b7c5b708b9bd3 /source/include
parentd2f0ef4cc30c6a9c4b5361abfa0a94b9a12acb54 (diff)
downloadsamba-d968c22341733d777217dbb756cb18b1e0655f2c.tar.gz
samba-d968c22341733d777217dbb756cb18b1e0655f2c.tar.xz
samba-d968c22341733d777217dbb756cb18b1e0655f2c.zip
r14751: Use the noreturn attribute to try and tell coverity that
smb_panic can't return. Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/includes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index 9f6f8b24718..e02a981d56a 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -1553,4 +1553,13 @@ LDAP *ldap_open_with_timeout(const char *server, int port, unsigned int to);
#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr)))
#define CONST_ADD(type, ptr) ((type) ((const void *) (ptr)))
+#ifndef NORETURN_ATTRIBUTE
+#if (__GNUC__ >= 3)
+#define NORETURN_ATTRIBUTE __attribute__ ((noreturn))
+#else
+#define NORETURN_ATTRIBUTE
+#endif
+#endif
+
+void smb_panic( const char *why ) NORETURN_ATTRIBUTE ;
#endif /* _INCLUDES_H */