From ae2ac3c0dbb5d32ebbcb267f6c47662d66ea410e Mon Sep 17 00:00:00 2001 From: Hendrik van Antwerpen Date: Tue, 7 Dec 2021 18:30:37 +0100 Subject: [PATCH] Initialize variable to silence compiler warnings --- lib/src/query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/query.c b/lib/src/query.c index 14ab91e4..8f56918a 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -467,7 +467,7 @@ static TSQuantifier quantifier_mul( TSQuantifier left, TSQuantifier right ) { - TSQuantifier result; + TSQuantifier result = Zero; // initialized to make compiler happy, but all cases should be covered below! switch (left) { case Zero: @@ -527,7 +527,7 @@ static TSQuantifier quantifier_join( TSQuantifier left, TSQuantifier right ) { - TSQuantifier result; + TSQuantifier result = Zero; // initialized to make compiler happy, but all cases should be covered below! switch (left) { case Zero: @@ -599,7 +599,7 @@ static TSQuantifier quantifier_add( TSQuantifier left, TSQuantifier right ) { - TSQuantifier result; + TSQuantifier result = Zero; // initialized to make compiler happy, but all cases should be covered below! switch (left) { case Zero: