diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2018-05-09 18:04:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-10 18:23:09 +0900 |
commit | 746ea4adc6cd88ad5f5af6beebace581fe489b2f (patch) | |
tree | 283cb217a3b33ae383846f00a2ffb1069418f938 /git-compat-util.h | |
parent | Convert remaining die*(BUG) messages (diff) | |
download | tgif-746ea4adc6cd88ad5f5af6beebace581fe489b2f.tar.xz |
BUG_exit_code: fix sparse "symbol not declared" warning
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 3a7216f531..3a051de450 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -1111,6 +1111,9 @@ static inline int regexec_buf(const regex_t *preg, const char *buf, size_t size, #define HAVE_VARIADIC_MACROS 1 #endif +/* usage.c: only to be used for testing BUG() implementation (see test-tool) */ +extern int BUG_exit_code; + #ifdef HAVE_VARIADIC_MACROS __attribute__((format (printf, 3, 4))) NORETURN void BUG_fl(const char *file, int line, const char *fmt, ...); |