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

Alexandre Julliard julliard at winehq.org
Tue Jan 17 13:45:29 CST 2012


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jan 17 14:59:41 2012 +0100

jscript: Set return value after assert(0) to avoid 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 8c2c091..8569c53 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) {




More information about the wine-cvs mailing list