Skip to content

Commit

Permalink
Shut up stupid polymorphic warning
Browse files Browse the repository at this point in the history
We have polymorphic types with a type that has no corresponding element in the union
  • Loading branch information
misyltoad committed Aug 16, 2021
1 parent 3208ff0 commit 2353c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrace/retrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def visitPolymorphic(self, polymorphic, lvalue, rvalue):
print(r' break;')
if polymorphic.defaultType is None:
print(r' default:')
print(r' retrace::warning(call) << "unexpected polymorphic case" << %s << "\n";' % (switchExpr,))
#print(r' retrace::warning(call) << "unexpected polymorphic case" << %s << "\n";' % (switchExpr,))
print(r' break;')
print(r' }')
if polymorphic.stream:
Expand Down

0 comments on commit 2353c86

Please sign in to comment.