From: Brian Paul Date: Fri, 8 Mar 2019 15:49:44 +0000 (-0700) Subject: intel/decoders: silence uninitialized variable warnings in gen_print_batch() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5ea56e411b3bab17ef0d4658f2c0bf23e8b91dc;p=mesa.git intel/decoders: silence uninitialized variable warnings in gen_print_batch() Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c index ff898d8222c..5cac9836cb1 100644 --- a/src/intel/common/gen_batch_decoder.c +++ b/src/intel/common/gen_batch_decoder.c @@ -874,9 +874,9 @@ gen_print_batch(struct gen_batch_decode_ctx *ctx, } if (strcmp(inst_name, "MI_BATCH_BUFFER_START") == 0) { - uint64_t next_batch_addr; + uint64_t next_batch_addr = 0; bool ppgtt = false; - bool second_level; + bool second_level = false; struct gen_field_iterator iter; gen_field_iterator_init(&iter, inst, p, 0, false); while (gen_field_iterator_next(&iter)) {