summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-05-31 16:54:22 +0200
committerBrian Fraser <fraserbn@gmail.com>2014-06-13 00:00:33 +0200
commitdc3bf405700292479bd7ac9b4b914cabd6567c33 (patch)
tree17a4589bbc50f498dcc2609f9e6ea3718990391b /hv.c
parentacfd4d8e7fdfa20116069fff8faae1108f58a00e (diff)
downloadperl-dc3bf405700292479bd7ac9b4b914cabd6567c33.tar.gz
Silence several -Wunused-parameter warnings about my_perl
This meant sprinkling some PERL_UNUSED_CONTEXT invocations, as well as stopping some functions from getting my_perl in the first place; all of the functions in the latter category are internal (S_ prefix and s or i in embed.fnc), so this should be both safe and economical.
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index 6e6adcb086..5a975eda07 100644
--- a/hv.c
+++ b/hv.c
@@ -3500,6 +3500,7 @@ struct refcounted_he *
Perl_refcounted_he_inc(pTHX_ struct refcounted_he *he)
{
dVAR;
+ PERL_UNUSED_CONTEXT;
if (he) {
HINTS_REFCNT_LOCK;
he->refcounted_he_refcnt++;
@@ -3524,6 +3525,7 @@ Perl_cop_fetch_label(pTHX_ COP *const cop, STRLEN *len, U32 *flags) {
struct refcounted_he *const chain = cop->cop_hints_hash;
PERL_ARGS_ASSERT_COP_FETCH_LABEL;
+ PERL_UNUSED_CONTEXT;
if (!chain)
return NULL;