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

Alexandre Julliard julliard at winehq.org
Wed Mar 6 13:11:54 CST 2013


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar  6 14:09:47 2013 +0100

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

---

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

diff --git a/dlls/vbscript/compile.c b/dlls/vbscript/compile.c
index 58494b9..fb1974b 100644
--- a/dlls/vbscript/compile.c
+++ b/dlls/vbscript/compile.c
@@ -1400,6 +1400,7 @@ static HRESULT create_class_funcprop(compile_ctx_t *ctx, function_decl_t *func_d
             break;
         default:
             assert(0);
+            return E_FAIL;
         }
 
         assert(!desc->entries[invoke_type]);
diff --git a/dlls/vbscript/global.c b/dlls/vbscript/global.c
index 9ff1f76..9c9cd41 100644
--- a/dlls/vbscript/global.c
+++ b/dlls/vbscript/global.c
@@ -1012,6 +1012,7 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
         return E_NOTIMPL;
     default:
         assert(0);
+        return E_FAIL;
     }
 
     if(startv) {




More information about the wine-cvs mailing list