Hi Mark, Yes, if possible that would be great. Another is to change, key_next(PARROT_INTERP, ARGIN(const PMC *key)) to key_next(PARROT_INTERP, ARGIN(PMC *key)).
Regards, Senaka On Tue, Apr 15, 2008 at 10:20 AM, Mark Glines via RT < [EMAIL PROTECTED]> wrote: > On Mon Apr 14 04:50:02 2008, [EMAIL PROTECTED] wrote: > > Attaching patch No. 2 for C++ Build Issue. > > Using a normal C compiler (gcc), I get this warning before this patch: > > src/key.c:448: warning: passing argument 2 of 'key->vtable->isa' > discards qualifiers from pointer target type > > And these warnings after this patch: > > src/key.c:448: warning: cast discards qualifiers from pointer target type > src/key.c:448: warning: cast discards qualifiers from pointer target type > > > At first glance, the only difference I can see is that your cast removes > the "const" attribute. But instead of doing that, I'm wondering if > maybe the second argument of VTABLE_isa(interp, pmc, name) should be > made const, instead. Would that help the g++ case too? > > Mark > >