From: Erik Faye-Lund Date: Wed, 15 Apr 2020 20:22:27 +0000 (+0200) Subject: util/tests: initialize variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c55fc3543537fdc7b402584a076eb87d258b4c51;p=mesa.git util/tests: initialize variable This just silences a compiler-warning about a potentially uninitialized variable. It's not uninitialized, but it's a bit hard for the compiler to see. So let's just initialize it to zero. Reviewed-by: Brian Paul Part-of: --- diff --git a/src/util/tests/hash_table/random_entry.c b/src/util/tests/hash_table/random_entry.c index 4902a999de6..75c4ef652fc 100644 --- a/src/util/tests/hash_table/random_entry.c +++ b/src/util/tests/hash_table/random_entry.c @@ -58,7 +58,7 @@ main(int argc, char **argv) struct hash_table *ht; struct hash_entry *entry; uint32_t keys[SIZE]; - uint32_t i, random_value; + uint32_t i, random_value = 0; (void) argc; (void) argv;