mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add bogus return to switch.
This commit is contained in:
parent
ece547204a
commit
cbf9a4f1ed
@ -94,7 +94,10 @@ public:
|
||||
else if (value == 21)
|
||||
return "true";
|
||||
else
|
||||
{
|
||||
assertThrow(false, CBORException, "Unsupported simple value (not a boolean).");
|
||||
return ""; // unreachable, but prevents compiler warning.
|
||||
}
|
||||
}
|
||||
default:
|
||||
assertThrow(false, CBORException, "Unsupported value type.");
|
||||
|
Loading…
Reference in New Issue
Block a user