summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-26 21:42:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-26 21:42:59 +0000
commitdff6d3cd91bb8f94ad6445629f3bfb07c761a04e (patch)
tree2fdb1d6ee1668406fc46ad998bab2befadecdcd1 /op.c
parent12b99c3939cdc258628e89c11e6677725b2947c0 (diff)
downloadperl-dff6d3cd91bb8f94ad6445629f3bfb07c761a04e.tar.gz
warnings and const violations identified by compiling in C++ mode
with GCC v2.95 p4raw-id: //depot/perl@4461
Diffstat (limited to 'op.c')
-rw-r--r--op.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/op.c b/op.c
index 7fae9f75ca..d0880214c7 100644
--- a/op.c
+++ b/op.c
@@ -1810,9 +1810,9 @@ Perl_bind_match(pTHX_ I32 type, OP *left, OP *right)
char *desc = PL_op_desc[(right->op_type == OP_SUBST ||
right->op_type == OP_TRANS)
? right->op_type : OP_MATCH];
- char *sample = ((left->op_type == OP_RV2AV ||
- left->op_type == OP_PADAV)
- ? "@array" : "%hash");
+ const char *sample = ((left->op_type == OP_RV2AV ||
+ left->op_type == OP_PADAV)
+ ? "@array" : "%hash");
Perl_warner(aTHX_ WARN_UNSAFE,
"Applying %s to %s will act on scalar(%s)",
desc, sample, sample);