]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config.c: mark die_bad_number as NORETURN
authorJeff King <peff@peff.net>
Wed, 16 Apr 2014 16:51:47 +0000 (12:51 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2014 17:21:14 +0000 (10:21 -0700)
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>
config.c

index e1d66a145b756c49c4e4902200c354499532a428..67e62ac8e5b88bdbb26ba178ceae3653b0aa25b8 100644 (file)
--- 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 ?