From: Vinson Lee Date: Sat, 13 Jul 2013 02:21:41 +0000 (-0700) Subject: r600g/sb: Initialize ra_constraint::cost. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0c3c955aece11f506a10c9134f64960010d88f6;p=mesa.git r600g/sb: Initialize ra_constraint::cost. Fixes "Uninitialized scalar field" reported by Coverity. Signed-off-by: Vinson Lee --- diff --git a/src/gallium/drivers/r600/sb/sb_shader.h b/src/gallium/drivers/r600/sb/sb_shader.h index ca9d29eb808..040dbf46667 100644 --- a/src/gallium/drivers/r600/sb/sb_shader.h +++ b/src/gallium/drivers/r600/sb/sb_shader.h @@ -113,7 +113,7 @@ typedef std::vector chunk_vector; class ra_constraint { public: - ra_constraint(constraint_kind kind) : kind(kind) {} + ra_constraint(constraint_kind kind) : kind(kind), cost(0) {} constraint_kind kind; vvec values;