summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-07-24 19:31:04 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-07-24 21:54:14 -0400
commitc0de32e24cb35f30ec0d37406b19fcc377911df7 (patch)
treee4b81afaedc36a3b2750c7cbb728c4cf948909ff
parent945b524a8cdacbf82557d751252e6546f48d21ae (diff)
downloadperl-c0de32e24cb35f30ec0d37406b19fcc377911df7.tar.gz
Unused dVARs found by g++ -DPERL_GLOBAL_STRUCT_PRIVATE.
-rw-r--r--deb.c4
-rw-r--r--op.c1
-rw-r--r--pad.c4
-rw-r--r--regcomp.c4
-rw-r--r--sv.c4
-rw-r--r--taint.c2
-rw-r--r--toke.c2
7 files changed, 0 insertions, 21 deletions
diff --git a/deb.c b/deb.c
index d1c3fe95bf..b93f12097d 100644
--- a/deb.c
+++ b/deb.c
@@ -59,7 +59,6 @@ void
Perl_vdeb(pTHX_ const char *pat, va_list *args)
{
#ifdef DEBUGGING
- dVAR;
const char* const file = PL_curcop ? OutCopFILE(PL_curcop) : "<null>";
const char* const display_file = file ? file : "<free>";
const long line = PL_curcop ? (long)CopLINE(PL_curcop) : 0;
@@ -83,7 +82,6 @@ I32
Perl_debstackptrs(pTHX)
{
#ifdef DEBUGGING
- dVAR;
PerlIO_printf(Perl_debug_log,
"%8"UVxf" %8"UVxf" %8"IVdf" %8"IVdf" %8"IVdf"\n",
PTR2UV(PL_curstack), PTR2UV(PL_stack_base),
@@ -115,7 +113,6 @@ S_deb_stack_n(pTHX_ SV** stack_base, I32 stack_min, I32 stack_max,
I32 mark_min, I32 mark_max)
{
#ifdef DEBUGGING
- dVAR;
I32 i = stack_max - 30;
const I32 *markscan = PL_markstack + mark_min;
@@ -205,7 +202,6 @@ void
Perl_deb_stack_all(pTHX)
{
#ifdef DEBUGGING
- dVAR;
I32 si_ix;
const PERL_SI *si;
diff --git a/op.c b/op.c
index e9de3a24e1..9ae3392f62 100644
--- a/op.c
+++ b/op.c
@@ -1118,7 +1118,6 @@ For example:
OP *
Perl_op_sibling_splice(OP *parent, OP *start, int del_count, OP* insert)
{
- dVAR;
OP *first = start ? OP_SIBLING(start) : cLISTOPx(parent)->op_first;
OP *rest;
OP *last_del = NULL;
diff --git a/pad.c b/pad.c
index 18b6e5c00e..00a76f2e40 100644
--- a/pad.c
+++ b/pad.c
@@ -1402,7 +1402,6 @@ Use macro PAD_SV instead of calling this function directly.
SV *
Perl_pad_sv(pTHX_ PADOFFSET po)
{
- dVAR;
ASSERT_CURPAD_ACTIVE("pad_sv");
if (!po)
@@ -1426,8 +1425,6 @@ Use the macro PAD_SETSV() rather than calling this function directly.
void
Perl_pad_setsv(pTHX_ PADOFFSET po, SV* sv)
{
- dVAR;
-
PERL_ARGS_ASSERT_PAD_SETSV;
ASSERT_CURPAD_ACTIVE("pad_setsv");
@@ -1918,7 +1915,6 @@ dump the contents of a CV
STATIC void
S_cv_dump(pTHX_ const CV *cv, const char *title)
{
- dVAR;
const CV * const outside = CvOUTSIDE(cv);
PADLIST* const padlist = CvPADLIST(cv);
diff --git a/regcomp.c b/regcomp.c
index 0f70a9e5f9..24fb0a7e3b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -15356,7 +15356,6 @@ STATIC U8
S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode *p,
const regnode *val,U32 depth)
{
- dVAR;
regnode *scan;
U8 exact = PSEUDO;
#ifdef EXPERIMENTAL_INPLACESCAN
@@ -15519,7 +15518,6 @@ void
Perl_regdump(pTHX_ const regexp *r)
{
#ifdef DEBUGGING
- dVAR;
SV * const sv = sv_newmortal();
SV *dsv= sv_newmortal();
RXi_GET_DECL(r,ri);
@@ -15618,7 +15616,6 @@ void
Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o, const regmatch_info *reginfo)
{
#ifdef DEBUGGING
- dVAR;
int k;
/* Should be synchronized with * ANYOF_ #xdefines in regcomp.h */
@@ -16719,7 +16716,6 @@ S_dumpuntil(pTHX_ const regexp *r, const regnode *start, const regnode *node,
const regnode *last, const regnode *plast,
SV* sv, I32 indent, U32 depth)
{
- dVAR;
U8 op = PSEUDO; /* Arbitrary non-END op. */
const regnode *next;
const regnode *optstart= NULL;
diff --git a/sv.c b/sv.c
index b02ef286d9..afd4376b4c 100644
--- a/sv.c
+++ b/sv.c
@@ -385,8 +385,6 @@ S_new_SV(pTHX_ const char *file, int line, const char *func)
STATIC void
S_del_sv(pTHX_ SV *p)
{
- dVAR;
-
PERL_ARGS_ASSERT_DEL_SV;
if (DEBUG_D_TEST) {
@@ -1855,7 +1853,6 @@ S_sv_display(pTHX_ SV *const sv, char *tmpbuf, STRLEN tmpbuf_size) {
STATIC void
S_not_a_number(pTHX_ SV *const sv)
{
- dVAR;
char tmpbuf[64];
const char *pv;
@@ -1876,7 +1873,6 @@ S_not_a_number(pTHX_ SV *const sv)
STATIC void
S_not_incrementable(pTHX_ SV *const sv) {
- dVAR;
char tmpbuf[64];
const char *pv;
diff --git a/taint.c b/taint.c
index a5194f4a34..60a9a54871 100644
--- a/taint.c
+++ b/taint.c
@@ -27,8 +27,6 @@ void
Perl_taint_proper(pTHX_ const char *f, const char *const s)
{
#if defined(HAS_SETEUID) && defined(DEBUGGING)
- dVAR;
-
PERL_ARGS_ASSERT_TAINT_PROPER;
{
diff --git a/toke.c b/toke.c
index 745a451246..b0997ef592 100644
--- a/toke.c
+++ b/toke.c
@@ -378,8 +378,6 @@ static struct debug_tokens {
STATIC int
S_tokereport(pTHX_ I32 rv, const YYSTYPE* lvalp)
{
- dVAR;
-
PERL_ARGS_ASSERT_TOKEREPORT;
if (DEBUG_T_TEST) {