softpipe: Silence compiler warning on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Tue, 9 Sep 2008 09:21:57 +0000 (11:21 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Tue, 9 Sep 2008 09:21:57 +0000 (11:21 +0200)
src/gallium/drivers/softpipe/sp_setup.c

index fe88d8f1408f0d88960f6b2f881fd0365ee1a3ba..bc8263c33e30e14e70cc24c80c3505f448624b7c 100644 (file)
@@ -1539,7 +1539,9 @@ void setup_destroy_context( struct setup_context *setup )
 struct setup_context *setup_create_context( struct softpipe_context *softpipe )
 {
    struct setup_context *setup = CALLOC_STRUCT(setup_context);
+#if SP_NUM_QUAD_THREADS > 1
    uint i;
+#endif
 
    setup->softpipe = softpipe;