1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-23 07:20:10 -04: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:
Kalle Olavi Niemitalo 2009-05-27 00:20:17 +03:00 committed by Kalle Olavi Niemitalo
parent 6d7b904fe3
commit 5aae1b81cc

View File

@ -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;