Commit 902915f6 authored by Alexandre Julliard's avatar Alexandre Julliard

jscript: Set return value after assert(0) to avoid warnings.

parent b46ea8a5
...@@ -698,6 +698,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal) ...@@ -698,6 +698,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal)
} }
default: default:
assert(0); assert(0);
return E_FAIL;
} }
} }
...@@ -1663,6 +1664,7 @@ static HRESULT compile_statement(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx, ...@@ -1663,6 +1664,7 @@ static HRESULT compile_statement(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx,
break; break;
default: default:
assert(0); assert(0);
hres = E_FAIL;
} }
if(stat_ctx) { if(stat_ctx) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment