From 33b95631700ef08ba9160c0967b6bb264348d2db Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 26 Jan 2014 10:54:31 +0000 Subject: [PATCH] fix a warning --- libvips/iofuncs/buffer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libvips/iofuncs/buffer.c b/libvips/iofuncs/buffer.c index 52602061..62299a3f 100644 --- a/libvips/iofuncs/buffer.c +++ b/libvips/iofuncs/buffer.c @@ -276,7 +276,6 @@ vips_buffer_undone( VipsBuffer *buffer ) { if( buffer->done ) { VipsBufferCache *cache = buffer->cache; - VipsBufferThread *buffer_thread = cache->buffer_thread; #ifdef DEBUG_VERBOSE printf( "vips_buffer_undone: thread %p removing " @@ -285,9 +284,9 @@ vips_buffer_undone( VipsBuffer *buffer ) #endif /*DEBUG_VERBOSE*/ g_assert( cache->thread == g_thread_self() ); - g_assert( buffer_thread->thread == cache->thread ); + g_assert( cache->buffer_thread->thread == cache->thread ); g_assert( g_slist_find( cache->buffers, buffer ) ); - g_assert( buffer_thread == buffer_thread_get() ); + g_assert( cache->buffer_thread == buffer_thread_get() ); cache->buffers = g_slist_remove( cache->buffers, buffer );