aboutsummaryrefslogtreecommitdiff
path: root/index-pack.c
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@googlemail.com>2009-09-30 18:05:49 +0000
committerJeff King <peff@peff.net>2009-10-01 04:12:21 -0400
commita4f3131c07c1f601be1e24b2143ca7e2deea09b5 (patch)
tree2586a271cd7cd125af045dff2a741b5d7e7c6a23 /index-pack.c
parent1be224ba6e99f0ab34c998d7fa8023b76a15c8b6 (diff)
downloadgit-a4f3131c07c1f601be1e24b2143ca7e2deea09b5.tar.gz
git-a4f3131c07c1f601be1e24b2143ca7e2deea09b5.tar.xz
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>
Diffstat (limited to 'index-pack.c')
-rw-r--r--index-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/index-pack.c b/index-pack.c
index 340074fc7..b4f827865 100644
--- a/index-pack.c
+++ b/index-pack.c
@@ -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, ...)
{