mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Let MSVC know about noreturn attribute to help with code analysis
This commit is contained in:
parent
98b1467a48
commit
a067bc25bc
4 changed files with 15 additions and 0 deletions
|
|
@ -162,6 +162,9 @@ struct abstract_ip_hdr {
|
|||
u32 ipid; /* IPv4 IP ID or IPv6 flow label. */
|
||||
};
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
void netutil_fatal(const char *str, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue