]> git.saurik.com Git - wxWidgets.git/blobdiff - src/tiff/test/strip.c
fix building with WXWIN_COMPATIBILITY_2_8 == 0
[wxWidgets.git] / src / tiff / test / strip.c
index 1dc1aa76a49820d3e1e3c9ebe3dc9f8dd8385afd..1e13fa88fdb4ed4b9b580a11fa9ae6f15a41a93f 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id$ */
 
 /*
  * Copyright (c) 2004, Andrey Kiselev  <dron@ak4719.spb.edu>
@@ -174,8 +173,8 @@ openfailure:
 "    ImageWidth=%ld, ImageLength=%ld, RowsPerStrip=%ld, Compression=%d,\n"
 "    BitsPerSample=%d, SamplesPerPixel=%d, SampleFormat=%d,\n"
 "    PlanarConfiguration=%d, PhotometricInterpretation=%d.\n",
-                name, width, length, rowsperstrip, compression,
-                bps, spp, sampleformat, planarconfig,
+                name, (long) width, (long) length, (long) rowsperstrip,
+                 compression, bps, spp, sampleformat, planarconfig,
                 photometric);
        return -1;
 }
@@ -252,8 +251,8 @@ openfailure:
 "    ImageWidth=%ld, ImageLength=%ld, RowsPerStrip=%ld, Compression=%d,\n"
 "    BitsPerSample=%d, SamplesPerPixel=%d, SampleFormat=%d,\n"
 "    PlanarConfiguration=%d, PhotometricInterpretation=%d.\n",
-                name, width, length, rowsperstrip, compression,
-                bps, spp, sampleformat, planarconfig,
+                name, (long) width, (long) length, (long) rowsperstrip,
+                 compression, bps, spp, sampleformat, planarconfig,
                 photometric);
        return -1;
 }
@@ -263,6 +262,7 @@ write_scanlines(TIFF *tif, const tdata_t array, const tsize_t size)
 {
        uint32          length, row;
        tsize_t         scanlinesize, offset;
+        (void) size;
 
        if (!TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &length)) {
                fprintf (stderr, "Can't get tag %d.\n", TIFFTAG_IMAGELENGTH);
@@ -278,7 +278,7 @@ write_scanlines(TIFF *tif, const tdata_t array, const tsize_t size)
        for (offset = 0, row = 0; row < length; offset+=scanlinesize, row++) {
                if (TIFFWriteScanline(tif, (char *)array + offset, row, 0) < 0) {
                        fprintf (stderr,
-                                "Can't write image data at row %lu.\n", row);
+                                "Can't write image data at row %lu.\n", (long) row);
                        return -1;
                }
         }