add noreturn attribute to compat functions
This commit is contained in:
parent
69e2a7fb75
commit
057e7a85b9
@ -18,6 +18,11 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
__declspec(noreturn)
|
||||||
|
#else
|
||||||
|
__attribute__((noreturn))
|
||||||
|
#endif
|
||||||
static inline void
|
static inline void
|
||||||
err(int eval, const char *fmt, ...)
|
err(int eval, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
@ -34,6 +39,11 @@ err(int eval, const char *fmt, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
__declspec(noreturn)
|
||||||
|
#else
|
||||||
|
__attribute__((noreturn))
|
||||||
|
#endif
|
||||||
static inline void
|
static inline void
|
||||||
errx(int eval, const char *fmt, ...)
|
errx(int eval, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user