mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Fiddling with -Wpedantic
This commit is contained in:
@@ -11,6 +11,10 @@ void freeNode(Node* node) {
|
||||
}
|
||||
|
||||
switch(node->type) {
|
||||
case NODE_ERROR:
|
||||
//NO-OP
|
||||
break;
|
||||
|
||||
case NODE_LITERAL:
|
||||
freeLiteral(node->atomic.literal);
|
||||
break;
|
||||
@@ -71,6 +75,10 @@ void emitNodeGrouping(Node** nodeHandle) {
|
||||
|
||||
void printNode(Node* node) {
|
||||
switch(node->type) {
|
||||
case NODE_ERROR:
|
||||
printf("error");
|
||||
break;
|
||||
|
||||
case NODE_LITERAL:
|
||||
printf("literal:");
|
||||
printLiteral(node->atomic.literal);
|
||||
|
||||
Reference in New Issue
Block a user