[Gdal-dev] Bug in TiffLib 3.8.2

SriRam Prasad Bhasker SriRam.PrasadBhasker at rmsi.com
Sat Feb 24 05:04:25 EST 2007


while compiling the below warning message is being generated.

warning :: tif_getimage.c(2103) : warning C4550: expression evaluates to a 
function which is missing an argument list


static tileContigRoutine
initCIELabConversion(TIFFRGBAImage* img)
{
        static char module[] = "initCIELabConversion";

        float   *whitePoint;
        float   refWhite[3];

        if (!img->cielab) {
                img->cielab = (TIFFCIELabToRGB *)
                        _TIFFmalloc(sizeof(TIFFCIELabToRGB));
                if (!img->cielab) {
                        TIFFErrorExt(img->tif->tif_clientdata, module,
                            "No space for CIE L*a*b*->RGB conversion 
state.");
                        return NULL;
                }
        }

        TIFFGetFieldDefaulted(img->tif, TIFFTAG_WHITEPOINT, &whitePoint);
        refWhite[1] = 100.0F;
        refWhite[0] = whitePoint[0] / whitePoint[1] * refWhite[1];
        refWhite[2] = (1.0F - whitePoint[0] - whitePoint[1])
                      / whitePoint[1] * refWhite[1];
        if (TIFFCIELabToRGBInit(img->cielab, &display_sRGB, refWhite) < 0) 
{
                TIFFErrorExt(img->tif->tif_clientdata, module,
                    "Failed to initialize CIE L*a*b*->RGB conversion 
state.");
                _TIFFfree(img->cielab);
                return NULL;
        }

        return putcontig8bitCIELab;
}

the output LIB is not getting compiled when used with vc++.


cheers
s.p.bhasker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070224/61cba2af/attachment.html


More information about the Gdal-dev mailing list