mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 07:27:26 +01:00
Problem: analyzer does not know that zmq_abort does not return
Solution: add no-return attributes
This commit is contained in:
parent
7b3acd47b2
commit
d002eb5578
@ -56,7 +56,15 @@
|
||||
namespace zmq
|
||||
{
|
||||
const char *errno_to_string (int errno_);
|
||||
#if defined __clang__
|
||||
#if __has_feature(attribute_analyzer_noreturn)
|
||||
void zmq_abort (const char *errmsg_) __attribute__ ((analyzer_noreturn));
|
||||
#endif
|
||||
#elif defined __MSCVER__
|
||||
__declspec(noreturn) void zmq_abort (const char *errmsg_);
|
||||
#else
|
||||
void zmq_abort (const char *errmsg_);
|
||||
#endif
|
||||
void print_backtrace (void);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user