summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-06 07:42:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-06 07:42:00 (GMT)
commit29fb15152584455590905726cb5a0e26ea26e9eb (patch)
tree569e053cec17633825c9f7bd8df042c88b0600e3 /config.c
parent946a5aee3e896aa12cb9d4d21079c6e299baad81 (diff)
parenta469a1019352b8efc4bd7003b0bd59eb60fc428c (diff)
downloadgit-29fb15152584455590905726cb5a0e26ea26e9eb.zip
git-29fb15152584455590905726cb5a0e26ea26e9eb.tar.gz
git-29fb15152584455590905726cb5a0e26ea26e9eb.tar.bz2
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 97364c0..053970f 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);