[Mesa-dev] Mesa (master): i915: Silence unused variable warning in non-debug builds.
Ian Romanick
idr at freedesktop.org
Mon Oct 11 16:17:51 PDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vinson Lee wrote:
> Module: Mesa
> Branch: master
> Commit: 220c0834a45d1dfa71f192b17d9a9b959a5a807e
> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=220c0834a45d1dfa71f192b17d9a9b959a5a807e
>
> Author: Vinson Lee <vlee at vmware.com>
> Date: Fri Oct 8 15:49:02 2010 -0700
>
> i915: Silence unused variable warning in non-debug builds.
>
> Fixes this GCC warning.
> i915_vtbl.c: In function 'i915_assert_not_dirty':
> i915_vtbl.c:670: warning: unused variable 'dirty'
>
> ---
>
> src/mesa/drivers/dri/i915/i915_vtbl.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c
> index d7828a2..8fa24e4 100644
> --- a/src/mesa/drivers/dri/i915/i915_vtbl.c
> +++ b/src/mesa/drivers/dri/i915/i915_vtbl.c
> @@ -669,6 +669,7 @@ i915_assert_not_dirty( struct intel_context *intel )
> struct i915_context *i915 = i915_context(&intel->ctx);
> GLuint dirty = get_dirty(&i915->state);
> assert(!dirty);
> + (void) dirty;
This should probably be changed to 'assert(!get_dirty(&i915->state))'
instead.
> }
>
> void
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyzmx4ACgkQX1gOwKyEAw/KaACdHARljJs2xHIKYxqtSqM91lcU
4FEAn00k2x7ZBrUiCugD7r30zTBd3Pec
=zDdQ
-----END PGP SIGNATURE-----
More information about the mesa-dev
mailing list