aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-05 23:42:00 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-05 23:42:00 -0800
commit29fb15152584455590905726cb5a0e26ea26e9eb (patch)
tree569e053cec17633825c9f7bd8df042c88b0600e3 /config.c
parent946a5aee3e896aa12cb9d4d21079c6e299baad81 (diff)
parenta469a1019352b8efc4bd7003b0bd59eb60fc428c (diff)
downloadgit-29fb15152584455590905726cb5a0e26ea26e9eb.tar.gz
git-29fb15152584455590905726cb5a0e26ea26e9eb.tar.xz
Merge branch 'jk/error-const-return'
Help compilers' flow analysis by making it more explicit that error() always returns -1, to reduce false "variable used uninitialized" warnings. Looks somewhat ugly but not too much. * jk/error-const-return: silence some -Wuninitialized false positives make error()'s constant return value more visible
Diffstat (limited to 'config.c')
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index 97364c03f..053970f36 100644
--- a/config.c
+++ b/config.c
@@ -1662,6 +1662,7 @@ int git_config_rename_section(const char *old_name, const char *new_name)
* Call this to report error for your variable that should not
* get a boolean value (i.e. "[my] var" means "true").
*/
+#undef config_error_nonbool
int config_error_nonbool(const char *var)
{
return error("Missing value for '%s'", var);