From c081f51ffc7c0076c90f58945f9469a54b2982d5 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 4 May 2016 13:20:19 +0100 Subject: [PATCH] fix a compiler warning --- libvips/colour/colour.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libvips/colour/colour.c b/libvips/colour/colour.c index 848032d4..ed5666a1 100644 --- a/libvips/colour/colour.c +++ b/libvips/colour/colour.c @@ -228,7 +228,6 @@ vips_colour_gen( VipsRegion *or, { VipsRegion **ir = (VipsRegion **) seq; VipsColour *colour = VIPS_COLOUR( b ); - VipsObjectClass *object_class = VIPS_OBJECT_GET_CLASS( colour ); VipsColourClass *class = VIPS_COLOUR_GET_CLASS( colour ); VipsRect *r = &or->valid; @@ -252,7 +251,7 @@ vips_colour_gen( VipsRegion *or, VIPS_GATE_STOP( "vips_colour_gen: work" ); - VIPS_COUNT_PIXELS( or, object_class->nickname ); + VIPS_COUNT_PIXELS( or, VIPS_OBJECT_GET_CLASS( colour )->nickname ); return( 0 ); }