[PATCH] jscript: fix warning with older compilers

Marcus Meissner marcus at jet.franken.de
Sat Mar 16 01:53:06 CDT 2013


gcc < 4.5 gives
compile.c:774: warning: control reaches end of non-void function

As DEFAULT_UNUSED: just turns into "default:"

CIao, Marcus
---
 dlls/jscript/compile.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c
index 516de49..d332087 100644
--- a/dlls/jscript/compile.c
+++ b/dlls/jscript/compile.c
@@ -771,6 +771,7 @@ static HRESULT compile_literal(compiler_ctx_t *ctx, literal_t *literal)
     }
     DEFAULT_UNREACHABLE;
     }
+    return E_FAIL;
 }
 
 static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *str)
-- 
1.7.10.4




More information about the wine-patches mailing list