#if 0
jas_eprintf("warning: skipping unknown tag type\n");
#endif
+ (void)attrvalinfo; /*'attrvalinfo' is assigned a value that is never used in function jas_iccprof_load*/
prevattrval = 0;
continue;
}
attrval = 0;
othattrval = 0;
txtdesc = 0;
+ (void)txtdesc;
/* Not yet implemented. */
abort();
attrval = 0;
othattrval = 0;
lut8 = 0;
+ (void)lut8;
abort();
return -1;
}
ulonglong tmp;
if (jas_iccgetuint(in, 2, &tmp))
return -1;
- *val = tmp;
+ *val = (jas_iccuint16_t)tmp; /* warning C4244: '=' : conversion from 'ulonglong' to 'jas_iccuint16_t', possible loss of data */
return 0;
}
ulonglong tmp;
if (jas_iccgetuint(in, 4, &tmp))
return -1;
- *val = (tmp & 0x80000000) ? (-JAS_CAST(longlong, (((~tmp) &
- 0x7fffffff) + 1))) : JAS_CAST(longlong, tmp);
+ *val = (jas_iccsint32_t)((tmp & 0x80000000) ? (-JAS_CAST(longlong, (((~tmp) &
+ 0x7fffffff) + 1))) : JAS_CAST(longlong, tmp)); /* warning C4244: '=' : conversion from 'longlong' to 'jas_iccsint32_t', possible loss of data */
return 0;
}
ulonglong tmp;
if (jas_iccgetuint(in, 4, &tmp))
return -1;
- *val = tmp;
+ *val = (jas_iccuint32_t)tmp; /* warning C4244: '=' : conversion from 'ulonglong' to 'jas_iccuint32_t', possible loss of data */
return 0;
}
int i;
int c;
for (i = n; i > 0; --i) {
- c = (val >> (8 * (i - 1))) & 0xff;
+ c = (int)((val >> (8 * (i - 1))) & 0xff); /* warning C4244: '=' : conversion from 'ulonglong' to 'int', possible loss of data */
if (jas_stream_putc(out, c) == EOF)
return -1;
}