AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2000.04.04 10:08 "tif_getimage.c and VC6 warning", by Arvan Pritchard

I have Libtiff version 3.5.5, and it produces warnings when compiled with VC6:

f:\software\libtiff\src\tif_getimage.c(1545): warning C4550: expression evaluates to a function which is missing an argument list

 I believe that this is a bug in VC6, but suggest the following
change to avoid the warning:

1545,1550c1545,1550

<     case 0x44: return (putcontig8bitYCbCr44tile);
<     case 0x42: return (putcontig8bitYCbCr42tile);
<     case 0x41: return (putcontig8bitYCbCr41tile);
<     case 0x22: return (putcontig8bitYCbCr22tile);
<     case 0x21: return (putcontig8bitYCbCr21tile);
<     case 0x11: return (putcontig8bitYCbCr11tile);
---
>     case 0x44: return (&putcontig8bitYCbCr44tile);
>     case 0x42: return (&putcontig8bitYCbCr42tile);
>     case 0x41: return (&putcontig8bitYCbCr41tile);
>     case 0x22: return (&putcontig8bitYCbCr22tile);
>     case 0x21: return (&putcontig8bitYCbCr21tile);
>     case 0x11: return (&putcontig8bitYCbCr11tile);

--
Arvan Pritchard
Informatix Software International Limited
Daedalus House, Station Road, Cambridge, CB1 2RE
arvan.pritchard@informatix.co.uk