IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2007, 5:31:39 PM (19 years ago)
Author:
jhoblitt
Message:

silence warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tap_psPixels_all.c

    r12331 r12512  
    273273    }
    274274
    275     psPixels *outPixels = NULL;
    276     {
     275    {
     276        psPixels *outPixels = NULL;
    277277        outPixels = psPixelsFromMask(outPixels, outImage, maskVal);
    278278        ok ( outPixels != NULL,
     
    281281    }
    282282
    283     //Return NULL for NULL image input
    284     {
    285         psPixels *outPixels = psPixelsFromMask(outPixels, NULL, maskVal);
     283    // Return NULL for NULL image input
     284    {
     285        psPixels *outPixels = NULL;
     286        outPixels = psPixelsFromMask(outPixels, NULL, maskVal);
    286287        ok ( outPixels == NULL,
    287288             "psPixelsFromMask:     return NULL for NULL image input.");
    288289    }
    289     //Return NULL for image with wrong maskType
     290
     291    // Return NULL for image with wrong maskType
    290292    *(psElemType*)&(outImage->type.type) = PS_TYPE_U32;
    291293    {
    292         psPixels *outPixels = psPixelsFromMask(outPixels, outImage, maskVal);
     294        psPixels *outPixels = NULL;
     295        outPixels = psPixelsFromMask(outPixels, outImage, maskVal);
    293296        ok ( outPixels == NULL,
    294297             "psPixelsFromMask:     return NULL for image with wrong maskType.");
    295298    }
    296299
    297     //psPixelsConcatenate Tests
    298     //Return NULL for NULL pixels input
    299     {
    300         psPixels *outPixels = psPixelsConcatenate(outPixels, NULL);
     300    // psPixelsConcatenate Tests
     301    // Return NULL for NULL pixels input
     302    {
     303        psPixels *outPixels = NULL;
     304        outPixels = psPixelsConcatenate(outPixels, NULL);
    301305        ok ( outPixels == NULL,
    302306             "psPixelsConcatenate:  return NULL for NULL pixels input.");
     
    306310    //Return copy of input pixels for NULL out pixels
    307311    {
     312        psPixels *outPixels = NULL;
    308313        outPixels = psPixelsFromMask(outPixels, outImage, maskVal);
    309314        outPixels = psPixelsConcatenate(outPixels, p0);
     
    313318        psFree(outPixels);
    314319    }
     320
    315321    //Return properly concatenated psPixels list
    316322    //Set all the compare cases to cover 'comparePixelCoord' as well.
    317     outPixels = psPixelsAlloc(5);
     323    psPixels *outPixels = psPixelsAlloc(5);
    318324    in.x = 1.0;
    319325    in.y = 1.0;
Note: See TracChangeset for help on using the changeset viewer.