mirror of https://github.com/ericonr/kanshi.git
parser: explicitly initialize key (kanshi_output_field) to 0
This warning is tripped by GCC 10.
This commit is contained in:
parent
9731ff9c79
commit
f88ba3a1dd
2
parser.c
2
parser.c
|
@ -299,7 +299,7 @@ static struct kanshi_profile_output *parse_profile_output(
|
||||||
output->name = strdup(parser->tok_str);
|
output->name = strdup(parser->tok_str);
|
||||||
|
|
||||||
bool has_key = false;
|
bool has_key = false;
|
||||||
enum kanshi_output_field key;
|
enum kanshi_output_field key = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (!parser_next_token(parser)) {
|
if (!parser_next_token(parser)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue