[argyllcms] Re: Visual Studio build runtime issue

  • From: János, Tóth F. <janos666@xxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 7 Oct 2013 04:55:53 +0200

I get these compiler warnings:

spectro\i1pro_imp.c(8326): warning #592: variable "y" is used before
its value is set
  return y;
        ^

tiff\libtiff\tif_dirinfo.c(797): warning #167: argument of type
"size_t={unsigned __int64} *" is incompatible with parameter of type
"unsigned int *"
      &tif->tif_nfields,
      ^

icc\icclu.c(292): warning #170: pointer points outside of underlying object
  for (bp = buf-1, nbp = buf, i = 0; i < MAX_CHAN; i++) {
              ^

xicc\xicclu.c(1077): warning #170: pointer points outside of underlying object
  for (bp = buf-1, nbp = buf, i = 0; i < MAX_CHAN; i++) {
              ^

xicc\mpplu.c(351): warning #170: pointer points outside of underlying object
  for (bp = buf-1, nbp = buf, i = 0; i < MAX_CHAN; i++) {
              ^

xicc\mpplu.c(471): warning #170: pointer points outside of underlying object
  for (bp = buf-1, nbp = buf, i = 0; i < MAX_CHAN; i++) {
              ^

xicc\xcolorantslu.c(156): warning #170: pointer points outside of
underlying object
  for (bp = buf-1, nbp = buf, i = 0; i < MAX_CHAN; i++) {
              ^

spectro\illumread.c(354): warning #140: too many arguments in function call
  usage("-Y R:rate syntax incorrect");
       ^

spectro\illumread.c(357): warning #140: too many arguments in function call
  usage("-Y R:rate %f Hz not in valid range",refrate);
       ^

spectro\spotread.c(1687): warning #592: variable "XYZ" is used before
its value is set
  rXYZ[0] = XYZ[0];
           ^


2013/10/7 Graeme Gill <graeme@xxxxxxxxxxxxx>:
> John Adcock wrote:
>> Looks like the issue is at line 155.  The buffers being too small should
>> generate a warning.
>
> Yes, that's all I could spot. A fixed version is at
> <http://www.argyllcms.com/Argyll_dev_src.zip>
>
> Graeme Gill.
>
>

Other related posts: