From f6189fe119b5a1b5fed1261ae72e6ae5e6f840c3 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 11 Jan 2020 14:21:10 -0500 Subject: [PATCH] silence warnings --- archive.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/archive.d b/archive.d index 8d14c26..453cab9 100644 --- a/archive.d +++ b/archive.d @@ -1877,7 +1877,7 @@ static ELzma2State Lzma2Dec_UpdateState(CLzma2Dec *p, Byte b) { switch(p.state) { - default: assert(0); + default: return ELzma2State.LZMA2_STATE_ERROR; case ELzma2State.LZMA2_STATE_CONTROL: p.control = b; if (p.control == 0) @@ -1928,7 +1928,6 @@ static ELzma2State Lzma2Dec_UpdateState(CLzma2Dec *p, Byte b) return ELzma2State.LZMA2_STATE_DATA; } } - return ELzma2State.LZMA2_STATE_ERROR; } static void LzmaDec_UpdateWithUncompressed(CLzmaDec *p, Byte *src, SizeT size)