config.c: mark die_bad_number as NORETURN
This can help avoid -Wuninitialized false positives in git_config_int and git_config_ulong, as the compiler now knows that we do not return "ret" if we hit the error codepath. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Apr 16, 2014 at 12:51 UTC
06bdc23b7e5b20ab06bf0feb3d463d032978992f
1 file changed
+1
config.c
+1
@@ -552,6 +552,7 @@ int git_parse_ulong(const char *value, unsigned long *ret)
552
return 1;
553
}
554
555
+NORETURN
556
static void die_bad_number(const char *name, const char *value)
557
{
558
const char *reason = errno == ERANGE ?