summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-04-18 11:17:44 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-18 11:17:45 -0700
commit531675ad172f984a6dbc2ac840caaf6ba1015eb0 (patch)
treee41b57b30d397304734516d1aef3d3db5d607446
parentMerge branch 'fc/remote-helper-fixes' (diff)
parentconfig.c: mark die_bad_number as NORETURN (diff)
downloadtgif-531675ad172f984a6dbc2ac840caaf6ba1015eb0.tar.xz
Merge branch 'jk/config-die-bad-number-noreturn'
Squelch a false compiler warning from older gcc. * jk/config-die-bad-number-noreturn: config.c: mark die_bad_number as NORETURN
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index 6821cef00a..a30cb5c07d 100644
--- a/config.c
+++ b/config.c
@@ -557,6 +557,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 ?