summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-09-04 20:18:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-07 19:29:53 (GMT)
commitb83f108b082dfd5452d5c1ab03596fa13750d23f (patch)
tree2ad433439de62fce9fc4551684c9bb4abfda7722 /git-compat-util.h
parent487beee0c37d48f06f1ccf19889f6c3dcbdbfa28 (diff)
downloadgit-b83f108b082dfd5452d5c1ab03596fa13750d23f.zip
git-b83f108b082dfd5452d5c1ab03596fa13750d23f.tar.gz
git-b83f108b082dfd5452d5c1ab03596fa13750d23f.tar.bz2
usage: add set_warn_routine()
There are already set_die_routine() and set_error_routine(), so let's add set_warn_routine() as this will be needed in a following commit. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 590bfdd..c7a51f8 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -440,6 +440,7 @@ static inline int const_error(void)
extern void set_die_routine(NORETURN_PTR void (*routine)(const char *err, va_list params));
extern void set_error_routine(void (*routine)(const char *err, va_list params));
+extern void set_warn_routine(void (*routine)(const char *warn, va_list params));
extern void set_die_is_recursing_routine(int (*routine)(void));
extern void set_error_handle(FILE *);