Subject: | warning: assignment discards qualifiers from pointer target type |
Compiler warning:
Want.xs: In function `XS_Want_parent_op_name':
Want.xs:524: warning: assignment discards qualifiers from pointer target
type
Attached patch fixes it.
Subject: | want.patch |
--- Want-0.14-ku00NN/Want.xs.orig 2007-05-07 11:12:22.000000000 -0400
+++ Want-0.14-ku00NN/Want.xs 2007-05-07 11:13:32.000000000 -0400
@@ -521,7 +521,7 @@
&& (second = first->op_sibling) && second->op_sibling != Nullop)
retval = "method_call";
else {
- retval = o ? PL_op_name[o->op_type] : "(none)";
+ retval = o ? (char *)PL_op_name[o->op_type] : "(none)";
}
if (GIMME == G_ARRAY) {
EXTEND(SP, 2);