From d6aebd45f0692550ec0f09b98eebc81fc73822d7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 26 Jun 2019 14:57:39 +0200 Subject: [PATCH] fetch/http.c: fix tcc build failure. fetch/http.c:1475: warning: function might return no value: 'parse_index' The code uses abort() before returning anything; return a proper return value instead. --- lib/fetch/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fetch/http.c b/lib/fetch/http.c index 97324222..fe98b1a9 100644 --- a/lib/fetch/http.c +++ b/lib/fetch/http.c @@ -1470,8 +1470,7 @@ parse_index(struct index_parser *parser, const char *buf, size_t len) return -1; return end_attr + 1 - buf; } - /* NOTREACHED */ - abort(); + return -1; } struct http_index_cache {