Mesa (master): Build fixes for gcc 2.95

Brian Paul brianp at kemper.freedesktop.org
Sun Jan 11 23:56:50 UTC 2009


Module: Mesa
Branch: master
Commit: 436024561aa6d78f78601f690803bd3845d225e7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=436024561aa6d78f78601f690803bd3845d225e7

Author: Matthieu Herrb <matthieu.herrb at laas.fr>
Date:   Sun Jan 11 16:56:34 2009 -0700

Build fixes for gcc 2.95

---

 src/glx/x11/drisw_glx.c  |    6 +++---
 src/glx/x11/glxcurrent.c |    5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/glx/x11/drisw_glx.c b/src/glx/x11/drisw_glx.c
index fee4595..35bbd91 100644
--- a/src/glx/x11/drisw_glx.c
+++ b/src/glx/x11/drisw_glx.c
@@ -113,7 +113,7 @@ swrastGetDrawableInfo(__DRIdrawable * draw,
                       int *x, int *y, int *w, int *h, void *loaderPrivate)
 {
    __GLXDRIdrawablePrivate *pdp = loaderPrivate;
-   __GLXDRIdrawable *pdraw = &(pdp->base);;
+   __GLXDRIdrawable *pdraw = &(pdp->base);
    Display *dpy = pdraw->psc->dpy;
    Drawable drawable;
 
@@ -141,7 +141,7 @@ swrastPutImage(__DRIdrawable * draw, int op,
                int x, int y, int w, int h, char *data, void *loaderPrivate)
 {
    __GLXDRIdrawablePrivate *pdp = loaderPrivate;
-   __GLXDRIdrawable *pdraw = &(pdp->base);;
+   __GLXDRIdrawable *pdraw = &(pdp->base);
    Display *dpy = pdraw->psc->dpy;
    Drawable drawable;
    XImage *ximage;
@@ -176,7 +176,7 @@ swrastGetImage(__DRIdrawable * draw,
                int x, int y, int w, int h, char *data, void *loaderPrivate)
 {
    __GLXDRIdrawablePrivate *pdp = loaderPrivate;
-   __GLXDRIdrawable *pdraw = &(pdp->base);;
+   __GLXDRIdrawable *pdraw = &(pdp->base);
    Display *dpy = pdraw->psc->dpy;
    Drawable drawable;
    XImage *ximage;
diff --git a/src/glx/x11/glxcurrent.c b/src/glx/x11/glxcurrent.c
index f3eb045..5af46cf 100644
--- a/src/glx/x11/glxcurrent.c
+++ b/src/glx/x11/glxcurrent.c
@@ -365,7 +365,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
    const CARD8 oldOpcode = ((gc == oldGC) || (oldGC == &dummyContext))
       ? opcode : __glXSetupForCommand(oldGC->currentDpy);
    Bool bindReturnValue;
-
+   __GLXattribute *state;
 
    if (!opcode || !oldOpcode) {
       return GL_FALSE;
@@ -489,8 +489,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
             } while (0);
 #endif
 
-            __GLXattribute *state =
-               (__GLXattribute *) (gc->client_state_private);
+            state = (__GLXattribute *) (gc->client_state_private);
 
             gc->currentContextTag = reply.contextTag;
             if (state->array_state == NULL) {




More information about the mesa-commit mailing list