diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-06 04:04:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 04:04:15 +0100 |
commit | dc02b03c4abd9878abce75e26bec153382835c6b (patch) | |
tree | df50002a188b9a65bf2cbd999a394273d0465666 /src/core/crypto | |
parent | Merge pull request #5289 from ReinUsesLisp/vulkan-device (diff) | |
parent | core: Enforce C4715 (not all control paths return a value) (diff) | |
download | yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.tar yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.tar.gz yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.tar.bz2 yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.tar.lz yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.tar.xz yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.tar.zst yuzu-dc02b03c4abd9878abce75e26bec153382835c6b.zip |
Diffstat (limited to 'src/core/crypto')
-rw-r--r-- | src/core/crypto/key_manager.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index da15f764a..cebe2ce37 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp @@ -143,6 +143,7 @@ u64 GetSignatureTypeDataSize(SignatureType type) { return 0x3C; } UNREACHABLE(); + return 0; } u64 GetSignatureTypePaddingSize(SignatureType type) { @@ -157,6 +158,7 @@ u64 GetSignatureTypePaddingSize(SignatureType type) { return 0x40; } UNREACHABLE(); + return 0; } SignatureType Ticket::GetSignatureType() const { @@ -169,8 +171,7 @@ SignatureType Ticket::GetSignatureType() const { if (const auto* ticket = std::get_if<ECDSATicket>(&data)) { return ticket->sig_type; } - - UNREACHABLE(); + throw std::bad_variant_access{}; } TicketData& Ticket::GetData() { @@ -183,8 +184,7 @@ TicketData& Ticket::GetData() { if (auto* ticket = std::get_if<ECDSATicket>(&data)) { return ticket->data; } - - UNREACHABLE(); + throw std::bad_variant_access{}; } const TicketData& Ticket::GetData() const { @@ -197,8 +197,7 @@ const TicketData& Ticket::GetData() const { if (const auto* ticket = std::get_if<ECDSATicket>(&data)) { return ticket->data; } - - UNREACHABLE(); + throw std::bad_variant_access{}; } u64 Ticket::GetSize() const { |