gvpr parseProg: squash -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 7 Aug 2022 03:41:18 +0000 (20:41 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Aug 2022 14:52:27 +0000 (07:52 -0700)
This switch is exhaustive.

lib/gvpr/parse.c

index 2b0555a5cc695ef1dae55341d8c6a5a1a61bef57..72fb7cfe6042d537890d8cede6d60c7f4d7521a0 100644 (file)
@@ -548,6 +548,8 @@ parse_prog *parseProg(char *input, int isFile)
        case Error:             /* to silence warnings */
            more = false;
            break;
+       default:
+           UNREACHABLE();
        }
     }