test/defer_strile_loading.c: fix warning with Visual C++

This commit is contained in:
Even Rouault 2019-05-22 22:34:27 +02:00
parent f017d2fae3
commit d2e2b4eeac
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -45,7 +45,8 @@ int test(int classictif, int height, int tiled)
const char* filename = "defer_strile_loading.tif"; const char* filename = "defer_strile_loading.tif";
TIFF* tif; TIFF* tif;
int i; int i;
int ret; int ret = 0;
(void)ret;
tif = TIFFOpen(filename, classictif ? "wDO" : "w8DO"); /* O should be ignored in write mode */ tif = TIFFOpen(filename, classictif ? "wDO" : "w8DO"); /* O should be ignored in write mode */
if(!tif) if(!tif)