Skip to content

Instantly share code, notes, and snippets.

@baskerville
Created June 29, 2017 18:20
Show Gist options
  • Save baskerville/30cc6b5725daed176a960587ab572e56 to your computer and use it in GitHub Desktop.
Save baskerville/30cc6b5725daed176a960587ab572e56 to your computer and use it in GitHub Desktop.
source/fitz/color-lcms.c:69:58: error: too many arguments to function call, expected single argument 'hProfile', have
2 arguments
return cmsChannelsOf(cmm_ctx, cmsGetColorSpace(cmm_ctx, profile->cmm_handle));
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1461:8: note: 'cmsGetColorSpace' declared here
CMSAPI cmsColorSpaceSignature
^
source/fitz/color-lcms.c:127:63: error: too many arguments to function call, expected single argument 'hTransform',
have 2 arguments
cmm_num_src = T_CHANNELS(cmsGetTransformInputFormat(cmm_ctx, hTransform));
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/opt/pkg/include/lcms2.h:688:34: note: expanded from macro 'T_CHANNELS'
#define T_CHANNELS(c) (((c)>>3)&15)
^
/opt/pkg/include/lcms2.h:1773:8: note: 'cmsGetTransformInputFormat' declared here
CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformInputFormat(cmsHTRANSFORM hTransform);
^
source/fitz/color-lcms.c:128:64: error: too many arguments to function call, expected single argument 'hTransform',
have 2 arguments
cmm_num_des = T_CHANNELS(cmsGetTransformOutputFormat(cmm_ctx, hTransform));
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/opt/pkg/include/lcms2.h:688:34: note: expanded from macro 'T_CHANNELS'
#define T_CHANNELS(c) (((c)>>3)&15)
^
/opt/pkg/include/lcms2.h:1774:8: note: 'cmsGetTransformOutputFormat' declared here
CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformOutputFormat(cmsHTRANSFORM hTransform);
^
source/fitz/color-lcms.c:142:61: error: too many arguments to function call, expected 4, have 5
cmsDoTransform(cmm_ctx, hTransform, inputpos, outputpos, sw);
~~~~~~~~~~~~~~ ^~
/opt/pkg/include/lcms2.h:1730:8: note: 'cmsDoTransform' declared here
CMSAPI void CMSEXPORT cmsDoTransform(cmsHTRANSFORM Transform,
^
source/fitz/color-lcms.c:153:61: error: too many arguments to function call, expected 4, have 5
cmsDoTransform(cmm_ctx, hTransform, inputpos, outputpos, sw);
~~~~~~~~~~~~~~ ^~
/opt/pkg/include/lcms2.h:1730:8: note: 'cmsDoTransform' declared here
CMSAPI void CMSEXPORT cmsDoTransform(cmsHTRANSFORM Transform,
^
source/fitz/color-lcms.c:168:48: error: too many arguments to function call, expected 4, have 5
cmsDoTransform(cmm_ctx, hTransform, src, dst, 1);
~~~~~~~~~~~~~~ ^
/opt/pkg/include/lcms2.h:1730:8: note: 'cmsDoTransform' declared here
CMSAPI void CMSEXPORT cmsDoTransform(cmsHTRANSFORM Transform,
^
source/fitz/color-lcms.c:186:37: error: too many arguments to function call, expected single argument 'hProfile', have
2 arguments
src_cs = cmsGetColorSpace(cmm_ctx, src->cmm_handle);
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1461:8: note: 'cmsGetColorSpace' declared here
CMSAPI cmsColorSpaceSignature
^
source/fitz/color-lcms.c:187:44: error: too many arguments to function call, expected single argument 'ProfileSpace',
have 2 arguments
lcms_src_cs = _cmsLCMScolorSpace(cmm_ctx, src_cs);
~~~~~~~~~~~~~~~~~~ ^~~~~~
/opt/pkg/include/lcms2.h:1484:8: note: '_cmsLCMScolorSpace' declared here
CMSAPI int CMSEXPORT _cmsLCMScolorSpace(cmsColorSpaceSignature ProfileSpace);
^
source/fitz/color-lcms.c:190:40: error: too many arguments to function call, expected single argument 'ColorSpace',
have 2 arguments
src_num_chan = cmsChannelsOf(cmm_ctx, src_cs);
~~~~~~~~~~~~~ ^~~~~~
/opt/pkg/include/lcms2.h:1486:8: note: 'cmsChannelsOf' declared here
CMSAPI cmsUInt32Number CMSEXPORT cmsChannelsOf(cmsColorSpaceSignature ColorSpace);
^
source/fitz/color-lcms.c:194:37: error: too many arguments to function call, expected single argument 'hProfile', have
2 arguments
des_cs = cmsGetColorSpace(cmm_ctx, dst->cmm_handle);
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1461:8: note: 'cmsGetColorSpace' declared here
CMSAPI cmsColorSpaceSignature
^
source/fitz/color-lcms.c:195:44: error: too many arguments to function call, expected single argument 'ProfileSpace',
have 2 arguments
lcms_des_cs = _cmsLCMScolorSpace(cmm_ctx, des_cs);
~~~~~~~~~~~~~~~~~~ ^~~~~~
/opt/pkg/include/lcms2.h:1484:8: note: '_cmsLCMScolorSpace' declared here
CMSAPI int CMSEXPORT _cmsLCMScolorSpace(cmsColorSpaceSignature ProfileSpace);
^
source/fitz/color-lcms.c:198:40: error: too many arguments to function call, expected single argument 'ColorSpace',
have 2 arguments
des_num_chan = cmsChannelsOf(cmm_ctx, des_cs);
~~~~~~~~~~~~~ ^~~~~~
/opt/pkg/include/lcms2.h:1486:8: note: 'cmsChannelsOf' declared here
CMSAPI cmsUInt32Number CMSEXPORT cmsChannelsOf(cmsColorSpaceSignature ColorSpace);
^
source/fitz/color-lcms.c:244:39: error: too many arguments to function call, expected single argument 'hProfile', have
2 arguments
prf_cs = cmsGetColorSpace(cmm_ctx, prf->cmm_handle);
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1461:8: note: 'cmsGetColorSpace' declared here
CMSAPI cmsColorSpaceSignature
^
source/fitz/color-lcms.c:245:46: error: too many arguments to function call, expected single argument 'ProfileSpace',
have 2 arguments
lcms_prf_cs = _cmsLCMScolorSpace(cmm_ctx, prf_cs);
~~~~~~~~~~~~~~~~~~ ^~~~~~
/opt/pkg/include/lcms2.h:1484:8: note: '_cmsLCMScolorSpace' declared here
CMSAPI int CMSEXPORT _cmsLCMScolorSpace(cmsColorSpaceSignature ProfileSpace);
^
source/fitz/color-lcms.c:248:42: error: too many arguments to function call, expected single argument 'ColorSpace',
have 2 arguments
prf_num_chan = cmsChannelsOf(cmm_ctx, prf_cs);
~~~~~~~~~~~~~ ^~~~~~
/opt/pkg/include/lcms2.h:1486:8: note: 'cmsChannelsOf' declared here
CMSAPI cmsUInt32Number CMSEXPORT cmsChannelsOf(cmsColorSpaceSignature ColorSpace);
^
source/fitz/color-lcms.c:253:80: error: too many arguments to function call, expected 3, have 4
src_to_prf_profile = cmsTransform2DeviceLink(cmm_ctx, src_to_prf_link, 3.4, flag);
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
/opt/pkg/include/lcms2.h:1604:8: note: 'cmsTransform2DeviceLink' declared here
CMSAPI cmsHPROFILE CMSEXPORT cmsTransform2DeviceLink(cmsHTRANSFORM hTransform, cmsFloat64Number Version, ...
^
source/fitz/color-lcms.c:254:32: error: too many arguments to function call, expected single argument 'hTransform',
have 2 arguments
cmsDeleteTransform(cmm_ctx, src_to_prf_link);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1728:8: note: 'cmsDeleteTransform' declared here
CMSAPI void CMSEXPORT cmsDeleteTransform(cmsHTRANSFORM hTransform);
^
source/fitz/color-lcms.c:262:29: error: too many arguments to function call, expected single argument 'hProfile', have
2 arguments
cmsCloseProfile(cmm_ctx, src_to_prf_profile);
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1534:8: note: 'cmsCloseProfile' declared here
CMSAPI cmsBool CMSEXPORT cmsCloseProfile(cmsHPROFILE hProfile);
^
source/fitz/color-lcms.c:277:31: error: too many arguments to function call, expected single argument 'hTransform',
have 2 arguments
cmsDeleteTransform(cmm_ctx, link->cmm_handle);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
/opt/pkg/include/lcms2.h:1728:8: note: 'cmsDeleteTransform' declared here
CMSAPI void CMSEXPORT cmsDeleteTransform(cmsHTRANSFORM hTransform);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [build/release/source/fitz/color-lcms.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment