Changeset 13997

Show
Ignore:
Timestamp:
03/13/08 20:54:57 (4 months ago)
Author:
warmerdam
Message:

Avoid chatter in quiet mode (#1863).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/apps/gdalwarp.cpp

    r13897 r13997  
    432432        { 
    433433            bEnableSrcAlpha = TRUE; 
    434             printf( "Using band %d of source image as alpha.\n",  
    435                     GDALGetRasterCount(hSrcDS) ); 
     434            if( !bQuiet ) 
     435                printf( "Using band %d of source image as alpha.\n",  
     436                        GDALGetRasterCount(hSrcDS) ); 
    436437        } 
    437438 
     
    530531            == GCI_AlphaBand ) 
    531532        { 
    532             printf( "Using band %d of destination image as alpha.\n",  
    533                     GDALGetRasterCount(hDstDS) ); 
     533            if( !bQuiet ) 
     534                printf( "Using band %d of destination image as alpha.\n",  
     535                        GDALGetRasterCount(hDstDS) ); 
    534536                 
    535537            bEnableDstAlpha = TRUE; 
     
    822824            { 
    823825                hCT = GDALCloneColorTable( hCT ); 
    824                 printf( "Copying color table from %s to new file.\n",  
    825                         papszSrcFiles[iSrc] ); 
     826                if( !bQuiet ) 
     827                    printf( "Copying color table from %s to new file.\n",  
     828                            papszSrcFiles[iSrc] ); 
    826829            } 
    827830        }