From: Eric Anholt Date: Tue, 22 Dec 2009 19:40:01 +0000 (-0800) Subject: mesa: Remove an unnecessary store reported by clang. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6260d4a14cb931330945a3d4d832aa83f9f60b7b;p=mesa.git mesa: Remove an unnecessary store reported by clang. This was a workaround for a compiler warning that was showing a real error. The real error was later fixed. --- diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index c69e759a117..499b7330d0a 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -1040,8 +1040,6 @@ static struct ureg emit_combine( struct texenv_fragment_program *p, assert(nr <= MAX_COMBINER_TERMS); - tmp = undef; /* silence warning (bug 5318) */ - for (i = 0; i < nr; i++) src[i] = emit_combine_source( p, mask, unit, opt[i].Source, opt[i].Operand );