develooper Front page | perl.perl5.porters | Postings from January 2003

[PATCH Storable 2.06] const declaration fixup

Thread Next
Craig A. Berry
January 23, 2003 14:25
[PATCH Storable 2.06] const declaration fixup
Message ID:
With recent versions of Compaq C under OpenVMS, the latest Storable 
version fails to compile like so:

Include=(perl_root:[lib.VMS_AXP.5_6_1.CORE])/Optimize  STORABLE.c

     WRITE(header, length);
%CC-W-NOTCONSTQUAL, In this statement, the referenced type of the 
pointer value "header" is const, but the referenced type of the target 
of this assignment is not.
at line number 3369 in file D0:[CRAIG.STORABLE-2_06]STORABLE.XS;1

The patch below takes care of this, after which the extension builds ok 
  and all tests pass under Perl 5.6.1, OpenVMS Alpha 7.3-1, Compaq C 6.5.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About