[Mesa-dev] [PATCH 1/2] intel/decoders: silence uninitialized variable warnings in gen_print_batch()
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Fri Mar 8 16:40:05 UTC 2019
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 08/03/2019 15:52, Brian Paul wrote:
> ---
> src/intel/common/gen_batch_decoder.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
> index ff898d8..5cac983 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)) {
More information about the mesa-dev
mailing list