From: Jeff King Date: Wed, 16 Apr 2014 16:51:47 +0000 (-0400) Subject: config.c: mark die_bad_number as NORETURN X-Git-Tag: v2.0.0-rc0~1^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/06bdc23b7e5b20ab06bf0feb3d463d032978992f 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 Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index e1d66a145b..67e62ac8e5 100644 --- a/config.c +++ b/config.c @@ -552,6 +552,7 @@ int git_parse_ulong(const char *value, unsigned long *ret) return 1; } +NORETURN static void die_bad_number(const char *name, const char *value) { const char *reason = errno == ERANGE ?