summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorLibravatar Petr Baudis <pasky@suse.cz>2006-07-02 22:57:17 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-07-02 17:14:45 -0700
commit65a4e98a22eab9317a05d1485c7c5a9c5befd589 (patch)
treecf1efe57d4e4652716477082e1eba76e79cabe42 /perl
parentGit.xs: older perl do not know const char * (diff)
downloadtgif-65a4e98a22eab9317a05d1485c7c5a9c5befd589.tar.xz
Git.pm: Don't #define around die
Back in the old days, we called Git's die() from the .xs code, but we had to hijack Perl's die() for that. Now we don't call Git's die() so no need to do the hijacking and it silences a compiler warning. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git.xs4
1 files changed, 0 insertions, 4 deletions
diff --git a/perl/Git.xs b/perl/Git.xs
index c8242103b5..2bbec4365f 100644
--- a/perl/Git.xs
+++ b/perl/Git.xs
@@ -8,15 +8,11 @@
#include "../cache.h"
#include "../exec_cmd.h"
-#define die perlyshadow_die__
-
/* XS and Perl interface */
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
-#undef die
-
static char *
report_xs(const char *prefix, const char *err, va_list params)