From 91ca93b9e05f7a795a22592675a284e2344972a7 Mon Sep 17 00:00:00 2001 From: cozis Date: Wed, 9 Mar 2022 12:26:45 +0100 Subject: [PATCH] fixed warnings --- src/compiler/parse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/parse.c b/src/compiler/parse.c index 20c3b34..72210a9 100644 --- a/src/compiler/parse.c +++ b/src/compiler/parse.c @@ -549,6 +549,10 @@ static Node *parse_statement(Context *ctx) switch(current(ctx)) { + default: + assert(0); + break; + case '(': case '[': case '+': @@ -1109,6 +1113,7 @@ static Node *parse_primary_expresion(Context *ctx) case '+': temp->base.kind = EXPR_POS; break; case '-': temp->base.kind = EXPR_NEG; break; case TKWNOT: temp->base.kind = EXPR_NOT; break; + default: assert(0); break; } } return (Node*) temp;