From 902915f6675b384e62205c4ce15fa02b01e6d976 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 17 Jan 2012 14:59:41 +0100 Subject: [PATCH] jscript: Set return value after assert(0) to avoid warnings. --- dlls/jscript/compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index 8c2c091f5a..8569c53c6b 100644 --- a/dlls/jscript/compile.c +++ b/dlls/jscript/compile.c @@ -698,6 +698,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal) } default: assert(0); + return E_FAIL; } } @@ -1663,6 +1664,7 @@ static HRESULT compile_statement(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx, break; default: assert(0); + hres = E_FAIL; } if(stat_ctx) { -- 2.32.0.93.g670b81a890