[Mesa-dev] [PATCH 10/12] svga: Silence warning

Jakob Bornecrantz jakob at vmware.com
Mon Jan 9 14:53:15 PST 2012


Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>
---
 src/gallium/drivers/svga/svga_tgsi_decl_sm30.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
index 15cd402..0c5cb90 100644
--- a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
+++ b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
@@ -528,15 +528,8 @@ svga_translate_decl_sm30( struct svga_shader_emitter *emit,
 {
    unsigned first = decl->Range.First;
    unsigned last = decl->Range.Last;
-   unsigned semantic = 0;
-   unsigned semantic_idx = 0;
    unsigned idx;
 
-   if (decl->Declaration.Semantic) {
-      semantic = decl->Semantic.Name;
-      semantic_idx = decl->Semantic.Index;
-   }
-
    for( idx = first; idx <= last; idx++ ) {
       boolean ok;
 
-- 
1.7.5.4



More information about the mesa-dev mailing list