| 174 |
|
|
| 175 |
|
/* Use the spectral sensitivity function to compute matrix coefficients */ |
| 176 |
|
void |
| 177 |
< |
sensrow(ROPMAT *rop, int r, double (*sf)(SCOLOR sc, int ncs, const float wlpt[4])) |
| 177 |
> |
sensrow(ROPMAT *rop, int r, double (*sf)(const SCOLOR sc, int ncs, const float wlpt[4])) |
| 178 |
|
{ |
| 179 |
|
const int nc = rop->imx.ncomp; |
| 180 |
|
int i; |
| 488 |
|
restype = mop[i].rmp->dtype; |
| 489 |
|
if (!imp->dtype || (restype = rmx_newtype(restype, imp->dtype)) > 0) |
| 490 |
|
imp->dtype = restype; |
| 491 |
< |
else |
| 491 |
> |
else if (!nowarn) |
| 492 |
|
fprintf(stderr, "%s: warning - data type mismatch\n", |
| 493 |
|
mop[i].inspec); |
| 494 |
|
if (!i) { |
| 552 |
|
|
| 553 |
|
#if defined(_WIN32) || defined(_WIN64) |
| 554 |
|
if (np > 1) { |
| 555 |
< |
fputs("Warning: only one process under Windows\n", stderr); |
| 555 |
> |
if (!nowarn) |
| 556 |
> |
fputs("Warning: only one process under Windows\n", stderr); |
| 557 |
|
np = 1; |
| 558 |
|
} else |
| 559 |
|
#endif |
| 690 |
|
i = close_processes(cproc, nchildren); /* collect family */ |
| 691 |
|
free(cproc); cproc = NULL; nchildren = 0; |
| 692 |
|
if (i < 0) { |
| 693 |
< |
fputs("Warning: lost child in parent_loop()\n", stderr); |
| 693 |
> |
if (!nowarn) |
| 694 |
> |
fputs("Warning: lost child in parent_loop()\n", stderr); |
| 695 |
|
return(1); |
| 696 |
|
} |
| 697 |
|
if (i > 0) { |
| 852 |
|
|
| 853 |
|
if (n2alloc == nall) |
| 854 |
|
return; |
| 855 |
< |
for (i = nall; i > n2alloc; i--) { |
| 855 |
> |
for (i = nall; i-- > n2alloc; ) { |
| 856 |
|
rmx_reset(&mop[i].imx); |
| 857 |
|
if (mop[i].rmp != &mop[i].imx) |
| 858 |
|
rmx_free(mop[i].rmp); |