Skip to content

Commit 85e17e6

Browse files
authored
fix warnings from -Wswitch-enum (#5170)
Signed-off-by: Chris Dodd <[email protected]>
1 parent d7c0805 commit 85e17e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ir/json_generator.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ class JSONGenerator {
135135
break;
136136
case OBJ_END:
137137
break;
138-
default:
138+
case TOP:
139+
case VEC_START:
140+
case VEC_MID:
141+
case OBJ_AFTERTAG:
139142
BUG("invalid json output state in end_object");
140143
break;
141144
}

0 commit comments

Comments
 (0)