From: Vinson Lee Date: Sat, 18 Sep 2010 06:43:38 +0000 (-0700) Subject: mesa: Silence "'valid_texture_object' defined but not used" warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c32bac57ed445e48856d74113364287ed6e5cdd4;p=mesa.git mesa: Silence "'valid_texture_object' defined but not used" warning. --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 1df165cf6a8..c96226df597 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -330,7 +330,11 @@ _mesa_reference_texobj(struct gl_texture_object **ptr, GLboolean deleteFlag = GL_FALSE; struct gl_texture_object *oldTex = *ptr; - ASSERT(valid_texture_object(oldTex)); + { + GLboolean valid = valid_texture_object(oldTex); + ASSERT(valid); + (void) valid; + } _glthread_LOCK_MUTEX(oldTex->Mutex); ASSERT(oldTex->RefCount > 0);