Changeset 14431

Show
Ignore:
Timestamp:
05/10/08 14:45:10 (2 months ago)
Author:
warmerdam
Message:

more warning fixes (mostly %d vs. %ld)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/ogr/ogr_srs_panorama.cpp

    r13859 r14431  
    560560                          "Failed to lookup ellipsoid code %d, likely due to" 
    561561                          " missing GDAL gcs.csv\n" 
    562                           " file.  Falling back to use WGS84.", iEllips ); 
     562                          " file.  Falling back to use WGS84.", (int) iEllips ); 
    563563                SetWellKnownGeogCS( "WGS84" ); 
    564564            } 
     
    573573                      "Wrong datum code %d. Supported datums are 1--%d only.\n" 
    574574                      "Setting WGS84 as a fallback.", 
    575                       iDatum, NUMBER_OF_DATUMS - 1 ); 
     575                      (int) iDatum, NUMBER_OF_DATUMS - 1 ); 
    576576            SetWellKnownGeogCS( "WGS84" ); 
    577577        } 
  • trunk/gdal/ogr/ogr_srs_usgs.cpp

    r13859 r14431  
    593593                    CPLError( CE_Warning, CPLE_AppDefined, 
    594594                              "Wrong datum for State Plane projection %d. " 
    595                               "Should be 0 or 8.", iDatum ); 
     595                              "Should be 0 or 8.", (int) iDatum ); 
    596596                 
    597597                SetStatePlane( iZone, bNAD83 ); 
     
    866866                          "Failed to lookup datum code %d, likely due to missing GDAL gcs.csv\n" 
    867867                          " file.  Falling back to use WGS84.",  
    868                           iDatum ); 
     868                          (int) iDatum ); 
    869869                SetWellKnownGeogCS("WGS84" ); 
    870870            } 
     
    875875                      "Wrong datum code %d. Supported datums 0--%d only.\n" 
    876876                      "Setting WGS84 as a fallback.", 
    877                       iDatum, NUMBER_OF_ELLIPSOIDS ); 
     877                      (int) iDatum, NUMBER_OF_ELLIPSOIDS ); 
    878878            SetWellKnownGeogCS( "WGS84" ); 
    879879        } 
  • trunk/gdal/ogr/ogrlinestring.cpp

    r14336 r14431  
    10011001                      "nMaxString=%d, strlen(*ppszDstText) = %d, i=%d\n" 
    10021002                      "*ppszDstText = %s",  
    1003                       nMaxString, strlen(*ppszDstText), i, *ppszDstText ); 
     1003                      nMaxString, (int) strlen(*ppszDstText), i, *ppszDstText ); 
    10041004 
    10051005            VSIFree( *ppszDstText );