mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Define die() with __attribute__((noreturn))
This will prevent some compiler warnings in the test I'm about to commit.
This commit is contained in:
parent
6d7b904fe3
commit
5aae1b81cc
@ -6,6 +6,9 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
static inline void
|
||||
#if (__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2
|
||||
__attribute__((noreturn))
|
||||
#endif
|
||||
die(const char *msg, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
Loading…
Reference in New Issue
Block a user