Add bogus return to switch.

This commit is contained in:
Daniel Kirchner 2022-05-11 13:58:06 +02:00
parent ece547204a
commit cbf9a4f1ed

View File

@ -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.");