From f88ba3a1dd3aa9099f291c365e628d2ffbf0cac6 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 17 Dec 2020 05:24:27 -0700 Subject: [PATCH] parser: explicitly initialize key (kanshi_output_field) to 0 This warning is tripped by GCC 10. --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 1f596c0..40146e8 100644 --- a/parser.c +++ b/parser.c @@ -299,7 +299,7 @@ static struct kanshi_profile_output *parse_profile_output( output->name = strdup(parser->tok_str); bool has_key = false; - enum kanshi_output_field key; + enum kanshi_output_field key = 0; while (1) { if (!parser_next_token(parser)) { return NULL;