1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00

r14751: Use the noreturn attribute to try and tell coverity that

smb_panic can't return.
Jeremy.
This commit is contained in:
Jeremy Allison
2006-03-28 15:50:13 +00:00
committed by Gerald (Jerry) Carter
parent d56ed46fae
commit ba9c98983e
2 changed files with 21 additions and 9 deletions

View File

@@ -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 */