increase portability of NORETURN declarations
Some compilers (including at least MSVC) support NORETURN on function declarations, but only before the function-name. This patch makes it possible to define NORETURN to something meaningful for those compilers. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
committed by
Jeff King
parent
1be224ba6e
commit
a4f3131c07
@ -206,8 +206,8 @@ static void parse_pack_header(void)
|
||||
use(sizeof(struct pack_header));
|
||||
}
|
||||
|
||||
static void bad_object(unsigned long offset, const char *format,
|
||||
...) NORETURN __attribute__((format (printf, 2, 3)));
|
||||
static NORETURN void bad_object(unsigned long offset, const char *format,
|
||||
...) __attribute__((format (printf, 2, 3)));
|
||||
|
||||
static void bad_object(unsigned long offset, const char *format, ...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user