Mesa (mesa_7_6_branch): i915g: Silence unused value warning in intel_drm_get_device_id.

Vinson Lee vlee at kemper.freedesktop.org
Sat Dec 12 16:25:12 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 75e8dbb2351c6bdbda0e5eaefdf434a7a5518c75
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75e8dbb2351c6bdbda0e5eaefdf434a7a5518c75

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Dec 12 16:24:25 2009 -0800

i915g: Silence unused value warning in intel_drm_get_device_id.

---

 src/gallium/winsys/drm/intel/gem/intel_drm_api.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/gem/intel_drm_api.c b/src/gallium/winsys/drm/intel/gem/intel_drm_api.c
index 4c5a1d2..0102565 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_drm_api.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_drm_api.c
@@ -31,6 +31,7 @@ intel_drm_get_device_id(unsigned int *device_id)
    }
 
    shutup_gcc = fgets(path, sizeof(path), file);
+   (void) shutup_gcc;
    sscanf(path, "%x", device_id);
    fclose(file);
 }



More information about the mesa-commit mailing list