mirror of
https://github.com/nmap/nmap.git
synced 2026-01-23 14:49:02 +00:00
Let MSVC know about noreturn attribute to help with code analysis
This commit is contained in:
@@ -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)));
|
||||
|
||||
@@ -129,6 +129,9 @@
|
||||
#include "nbase.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
static void fatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
@@ -168,6 +168,9 @@ do { \
|
||||
|
||||
void die(char *);
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
void bye(const char *, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
@@ -75,10 +75,16 @@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
void fatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
void pfatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
Reference in New Issue
Block a user