On Fri, Jun 24, 2005 at 06:06:51PM +0100, Steve Hay wrote: > 24945 changed the second arg of Perl_magic_getarylen from MAGIC* to > const MAGIC*, which now makes bcc32 complain: > > ..\globals.c: > Warning W8075 ..\perl.h 4180: Suspicious pointer conversion > > (It seems to have got its line numbers confused too. cpp32 output shows: > > /* ..\perl.h 4180: */const MGVTBL PL_vtbl_arylen = > {Perl_magic_getarylen,Perl_magic_setarylen,0,0,0,0,0}; > > ) > > Are the other Perl_magic_get*() functions going to get their MAGIC*'s > constified too? > > If so then the problem will go away when "struct mgvtbl" is updated to > match in mg.h. If not then we need to think of some other way to > suppress the new warning.
I suspect it may be related to the warning I'm seeing as well. In file included from globals.c:35: perl.h:4170: warning: initialization from incompatible pointer type This also points to ... 4178 MGVTBL_SET( 4179 PL_vtbl_arylen, 4180 MEMBER_TO_FPTR(Perl_magic_getarylen), 4181 MEMBER_TO_FPTR(Perl_magic_setarylen), 4182 NULL, 4183 NULL, 4184 NULL, 4185 NULL, 4186 NULL 4187 ); Steve Peters [EMAIL PROTECTED]