From a27ecc40bab8883dc63ca95bb3dfafd02b48a550 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 8 Mar 2013 19:29:24 +0100 Subject: [PATCH] jscript: Return after assert(0) to silence warnings. --- dlls/jscript/compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index 53ed9e732a2..84d3d5f1265 100644 --- a/dlls/jscript/compile.c +++ b/dlls/jscript/compile.c @@ -799,6 +799,7 @@ static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *st } default: assert(0); + return E_FAIL; } return *str ? S_OK : E_OUTOFMEMORY; @@ -1051,6 +1052,7 @@ static HRESULT compile_expression(compiler_ctx_t *ctx, expression_t *expr, BOOL break; default: assert(0); + hres = E_FAIL; } if(FAILED(hres))