Alexandre Julliard : jscript: Return after assert(0) to silence warnings.

Alexandre Julliard julliard at winehq.org
Fri Mar 8 14:00:37 CST 2013


Module: wine
Branch: master
Commit: a27ecc40bab8883dc63ca95bb3dfafd02b48a550
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a27ecc40bab8883dc63ca95bb3dfafd02b48a550

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Mar  8 19:29:24 2013 +0100

jscript: Return after assert(0) to silence warnings.

---

 dlls/jscript/compile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c
index 53ed9e7..84d3d5f 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))




More information about the wine-cvs mailing list