mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Add some missing noreturn and format attributes.
This commit is contained in:
parent
658b8648c6
commit
129d804d15
2 changed files with 9 additions and 3 deletions
|
|
@ -98,7 +98,9 @@
|
|||
#include "nbase.h"
|
||||
#include <stdio.h>
|
||||
|
||||
static void fatal(char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
|
||||
static void fatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
static void fatal(char *fmt, ...) {
|
||||
va_list ap;
|
||||
|
|
|
|||
|
|
@ -75,9 +75,13 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
void fatal(char *fmt, ...) __attribute__((noreturn));
|
||||
void fatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
void pfatal(char *fmt, ...) __attribute__((noreturn));
|
||||
void pfatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
void gh_perror(char *err, ...);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue