fix a warning if tiff is disabled

This commit is contained in:
John Cupitt 2018-04-10 15:14:09 +01:00
parent 15abbbe986
commit f1f2a9de55

View File

@ -54,6 +54,7 @@
static int static int
tiff2vips( const char *name, IMAGE *out, gboolean header_only ) tiff2vips( const char *name, IMAGE *out, gboolean header_only )
{ {
#ifdef HAVE_TIFF
char filename[FILENAME_MAX]; char filename[FILENAME_MAX];
char mode[FILENAME_MAX]; char mode[FILENAME_MAX];
char *p, *q; char *p, *q;
@ -84,7 +85,6 @@ tiff2vips( const char *name, IMAGE *out, gboolean header_only )
* malloc if all we are doing is looking at fields. * malloc if all we are doing is looking at fields.
*/ */
#ifdef HAVE_TIFF
if( !header_only && if( !header_only &&
!seq && !seq &&
!vips__istifftiled( filename ) && !vips__istifftiled( filename ) &&