From 80afbe5cf5f30e0f3116f99fc44c930f2cd60935 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 28 Mar 2006 15:50:13 +0000 Subject: r14751: Use the noreturn attribute to try and tell coverity that smb_panic can't return. Jeremy. (This used to be commit ba9c98983efbf4871e1ec07df37590d97ec52fba) --- source3/include/includes.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/include/includes.h') diff --git a/source3/include/includes.h b/source3/include/includes.h index 9f6f8b2471..e02a981d56 100644 --- a/source3/include/includes.h +++ b/source3/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 */ -- cgit