Mesa (mesa_7_6_branch): progs/xdemos: Silence unused value warnings in sharedtex_mt.c.

Vinson Lee vlee at kemper.freedesktop.org
Fri Dec 4 00:05:29 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Nov 20 13:09:42 2009 -0800

progs/xdemos: Silence unused value warnings in sharedtex_mt.c.
(cherry picked from commit 8556fad75124e1ade9af095e112ebb6ac5cbff61)

---

 progs/xdemos/sharedtex_mt.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/progs/xdemos/sharedtex_mt.c b/progs/xdemos/sharedtex_mt.c
index 07c1bfc..f924448 100644
--- a/progs/xdemos/sharedtex_mt.c
+++ b/progs/xdemos/sharedtex_mt.c
@@ -447,7 +447,7 @@ main(int argc, char *argv[])
    const char *dpyName = XDisplayName(NULL);
    pthread_t t0, t1, t2, t3;
    struct thread_init_arg tia0, tia1, tia2, tia3;
-   struct window *h0, *h1, *h2, *h3;
+   struct window *h0;
 
    XInitThreads();
 
@@ -462,9 +462,9 @@ main(int argc, char *argv[])
 
    /* four windows and contexts sharing display lists and texture objects */
    h0 = AddWindow(gDpy, dpyName,  10,  10, gCtx);
-   h1 = AddWindow(gDpy, dpyName, 330,  10, gCtx);
-   h2 = AddWindow(gDpy, dpyName,  10, 350, gCtx);
-   h3 = AddWindow(gDpy, dpyName, 330, 350, gCtx);
+   (void) AddWindow(gDpy, dpyName, 330,  10, gCtx);
+   (void) AddWindow(gDpy, dpyName,  10, 350, gCtx);
+   (void) AddWindow(gDpy, dpyName, 330, 350, gCtx);
 
    if (!glXMakeCurrent(gDpy, h0->Win, gCtx)) {
       Error(dpyName, "glXMakeCurrent failed for init thread.");



More information about the mesa-commit mailing list