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

[PATCH Storable 2.06] const declaration fixup

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

CC/DECC 
/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/NOANSI_ALIAS/Define=("VERSION=""2.06""","XS_VERSION=""2.06""")/
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About