diff options
author | David Mitchell <davem@iabyn.com> | 2013-05-09 14:23:38 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2013-05-09 14:34:00 +0100 |
commit | 9a9b5ec9e94e1e207c265a6acd160fc49bca06fa (patch) | |
tree | 6d172543e9d62b5ce6dd790ada6130c3bdeae0c7 /util.c | |
parent | 3231f5793f6a3d7ee78eb1d68feb05c064b33315 (diff) | |
download | perl-9a9b5ec9e94e1e207c265a6acd160fc49bca06fa.tar.gz |
silence warnings under NO_TAINT_SUPPORT
The are lots of places where local vars aren't used when compiled
with NO_TAINT_SUPPORT.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6423,7 +6423,7 @@ Perl_get_db_sub(pTHX_ SV **svp, CV *cv) { dVAR; SV * const dbsv = GvSVn(PL_DBsub); - const bool save_taint = TAINT_get; /* Accepted unused var warning under NO_TAINT_SUPPORT */ + const bool save_taint = TAINT_get; /* When we are called from pp_goto (svp is null), * we do not care about using dbsv to call CV; @@ -6474,6 +6474,9 @@ Perl_get_db_sub(pTHX_ SV **svp, CV *cv) SvIV_set(dbsv, PTR2IV(cv)); /* Do it the quickest way */ } TAINT_IF(save_taint); +#ifdef NO_TAINT_SUPPORT + PERL_UNUSED_VAR(save_taint); +#endif } int |