Mesa (7.11): r300/compiler: fix a warning that a variable may be uninitialized

Marek Olšák mareko at kemper.freedesktop.org
Sun Aug 7 09:37:07 PDT 2011


Module: Mesa
Branch: 7.11
Commit: f69357d77afa8039d387d10ed8db700ecf63d913
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f69357d77afa8039d387d10ed8db700ecf63d913

Author: Marek Olšák <maraeo at gmail.com>
Date:   Fri Jul 15 20:25:38 2011 +0200

r300/compiler: fix a warning that a variable may be uninitialized
(cherry picked from commit 2ce6c3ea6e66a708aefba36358fa43f2f312c42f)

---

 .../drivers/dri/r300/compiler/radeon_dataflow.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c b/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c
index b0deb75..a8decac 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c
@@ -687,7 +687,7 @@ static void get_readers_for_single_write(
 	struct rc_instruction * tmp;
 	unsigned int branch_depth = 0;
 	struct rc_instruction * endloop = NULL;
-	unsigned int abort_on_read_at_endloop;
+	unsigned int abort_on_read_at_endloop = 0;
 	struct get_readers_callback_data * d = userdata;
 
 	d->ReaderData->Writer = writer;



More information about the mesa-commit mailing list