Skip Menu |

This queue is for tickets about the Want CPAN distribution.

Report information
The Basics
Id: 26961
Status: resolved
Priority: 0/
Queue: Want

People
Owner: Nobody in particular
Requestors: jdhedden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



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);
Thsnks, I've applied your patch to my working copy. It doesn't seem worth putting out a new version just for this, so I'll just keep it till I put out a new version for some other reason.