[Lcms-user] Revision 485 "Constify some big arrays to allow to compiler put them in read only secti
An ICC-based CMM for color management
Brought to you by:
mm2
From: Noel C. <NCa...@Pr...> - 2017-08-22 16:09:11
|
Hi folks, The current Little CMS trunk does not build at all with the VS 2017 C++ compiler. ..\..\..\src\cmspack.c(3018): error C2440: 'initializing': cannot convert from 'const cmsFormatters16 *' to 'cmsFormatters16 *' ..\..\..\src\cmspack.c(3018): note: Conversion loses qualifiers ..\..\..\src\cmspack.c(3030): error C2440: 'initializing': cannot convert from 'const cmsFormattersFloat *' to 'cmsFormattersFloat *' ..\..\..\src\cmspack.c(3030): note: Conversion loses qualifiers ..\..\..\src\cmspack.c(3175): error C2440: 'initializing': cannot convert from 'const cmsFormatters16 *' to 'cmsFormatters16 *' ..\..\..\src\cmspack.c(3175): note: Conversion loses qualifiers ..\..\..\src\cmstypes.c(5329): error C2440: 'initializing': cannot convert from 'const _cmsTagTypeLinkedList *' to '_cmsTagTypeLinkedList_st *' ..\..\..\src\cmstypes.c(5329): note: Conversion loses qualifiers ..\..\..\src\cmstypes.c(5419): error C2664: 'cmsTagTypeHandler *GetHandler(cmsTagTypeSignature,_cmsTagTypeLinkedList *,_cmsTagTypeLinkedList *)': cannot convert argument 3 from 'const _cmsTagTypeLinkedList [31]' to '_cmsTagTypeLinkedList *' ..\..\..\src\cmstypes.c(5419): note: Conversion loses qualifiers ..\..\..\src\cmstypes.c(5524): error C2440: 'initializing': cannot convert from 'const _cmsTagLinkedList *' to '_cmsTagLinkedList_st *' ..\..\..\src\cmstypes.c(5524): note: Conversion loses qualifiers ..\..\..\src\cmstypes.c(5624): error C2440: '=': cannot convert from 'const _cmsTagLinkedList [64]' to '_cmsTagLinkedList *' ..\..\..\src\cmstypes.c(5624): note: Conversion loses qualifiers The change is a good idea but the whole job has to be done, so that all the types match everywhere. -Noel |