From 91df8b1780faf39eaf39cc279a2459ee1fa3a8e3 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Date: Mon, 25 Feb 2019 10:48:52 +0000 Subject: intel/aub_viewer: silence compiler warning buffer_addr may be used uninitialized. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> --- src/intel/tools/aubinator_viewer_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/tools') diff --git a/src/intel/tools/aubinator_viewer_decoder.cpp b/src/intel/tools/aubinator_viewer_decoder.cpp index 4190674fc58..e804fa798c4 100644 --- a/src/intel/tools/aubinator_viewer_decoder.cpp +++ b/src/intel/tools/aubinator_viewer_decoder.cpp @@ -364,7 +364,7 @@ handle_3dstate_vertex_buffers(struct aub_viewer_decode_ctx *ctx, if (iter.struct_desc != vbs) continue; - uint64_t buffer_addr; + uint64_t buffer_addr = 0; struct gen_field_iterator vbs_iter; gen_field_iterator_init(&vbs_iter, vbs, &iter.p[iter.start_bit / 32], 0, false); -- cgit v1.2.3