summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-09-19 20:51:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-19 20:51:41 (GMT)
commit3d54b93f405c6881ac477c5bfec10802ea53f73d (patch)
treec75a7d1af7dc617539d05c7eae34df0ef36d8a94 /git-compat-util.h
parent1e28677e5b16515518bdd1dbef02ca48a4438c4e (diff)
parent3e1952ed96dde926ce38a8ab8803f9a410ecdae3 (diff)
downloadgit-3d54b93f405c6881ac477c5bfec10802ea53f73d.zip
git-3d54b93f405c6881ac477c5bfec10802ea53f73d.tar.gz
git-3d54b93f405c6881ac477c5bfec10802ea53f73d.tar.bz2
Merge branch 'jk/squelch-false-warning-from-gcc-o3' into maint
Compilation fix. * jk/squelch-false-warning-from-gcc-o3: color_parse_mem: initialize "struct color" temporary error_errno: use constant return similar to error()
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index db89ba7..2ad45b3 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -436,6 +436,7 @@ static inline int const_error(void)
return -1;
}
#define error(...) (error(__VA_ARGS__), const_error())
+#define error_errno(...) (error_errno(__VA_ARGS__), const_error())
#endif
extern void set_die_routine(NORETURN_PTR void (*routine)(const char *err, va_list params));