mirror of https://github.com/nirenjan/libx52.git
Add noreturn attribute to tap_bailout
This change is necessary since clang warns on a missing noreturn attribute.reverse-scroll
parent
3c006d0929
commit
6d78ab1940
|
@ -168,6 +168,11 @@ static void verify_defaults(void)
|
||||||
TEST_LOG(FATAL, filter, fmt, ##__VA_ARGS__); \
|
TEST_LOG(FATAL, filter, fmt, ##__VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
#if defined __has_attribute
|
||||||
|
# if __has_attribute(noreturn)
|
||||||
|
__attribute__((noreturn))
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
static void tap_bailout(const char *msg)
|
static void tap_bailout(const char *msg)
|
||||||
{
|
{
|
||||||
printf("Bail out! Error %d %s:%s\n", errno, msg, strerror(errno));
|
printf("Bail out! Error %d %s:%s\n", errno, msg, strerror(errno));
|
||||||
|
|
Loading…
Reference in New Issue