st/xorg: Kill a couple of compilation warnings
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Jul 2010 01:41:10 +0000 (03:41 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 23 Jul 2010 02:48:32 +0000 (04:48 +0200)
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_exa.c

index 627754a0a4f314d2fb51da3032e52d4871058db4..26a907f205e7f8bbed34bb02ff7dcd5931c20f3d 100644 (file)
@@ -94,7 +94,8 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
     struct crtc_private *crtcp = crtc->driver_private;
     drmModeCrtcPtr drm_crtc = crtcp->drm_crtc;
     drmModeModeInfo drm_mode;
-    int i, ret, connector_id;
+    int i, ret;
+    unsigned int connector_id;
 
     for (i = 0; i < config->num_output; output = NULL, i++) {
        output = config->output[i];
index bd8466830008c8e26a258ed00a639783ea0262df..6b2c80fbca60a1607d1098e62786b248d56e037b 100644 (file)
@@ -881,7 +881,6 @@ ExaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height,
 
        if (priv->tex) {
            struct pipe_subresource subdst, subsrc;
-           struct pipe_surface *src_surf;
 
            subdst.face = 0;
            subdst.level = 0;