From 06bdc23b7e5b20ab06bf0feb3d463d032978992f Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 16 Apr 2014 12:51:47 -0400 Subject: [PATCH] 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 --- config.c | 1 + 1 file changed, 1 insertion(+) 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 ? -- 2.11.4.GIT