diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-05 23:42:00 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-05 23:42:00 -0800 |
commit | 29fb15152584455590905726cb5a0e26ea26e9eb (patch) | |
tree | 569e053cec17633825c9f7bd8df042c88b0600e3 /config.c | |
parent | 946a5aee3e896aa12cb9d4d21079c6e299baad81 (diff) | |
parent | a469a1019352b8efc4bd7003b0bd59eb60fc428c (diff) | |
download | git-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |