winedbg: Disable some dead code in expr_eval. (RESEND)
Gerald Pfeifer
gerald at pfeifer.com
Sun May 22 11:19:27 CDT 2011
I didn't see any response to this. If the preferred way of handling
this is to remove the code altogether, I'll happily do that, too.
Gerald
---------- Forwarded message ----------
From: Gerald Pfeifer <gerald at pfeifer.com>
To: wine-patches at winehq.org
Date: Mon, 3 Jan 2011 00:00:41 +0100 (CET)
Subject: winedbg: Disable some dead code in expr_eval.
Alternately, should we remove the hunk of code that uses cexp[]
but has been if #0-ed?
Gerald
---
programs/winedbg/expr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/programs/winedbg/expr.c b/programs/winedbg/expr.c
index 66cd701..2d61550 100644
--- a/programs/winedbg/expr.c
+++ b/programs/winedbg/expr.c
@@ -278,7 +278,6 @@ struct dbg_lvalue expr_eval(struct expr* exp)
int i;
struct dbg_lvalue exp1;
struct dbg_lvalue exp2;
- unsigned int cexp[5];
DWORD64 scale1, scale2, scale3;
struct dbg_type type1, type2;
DWORD tag;
@@ -406,7 +405,9 @@ struct dbg_lvalue expr_eval(struct expr* exp)
exp1 = expr_eval(exp->un.call.arg[i]);
if (exp1.type.id == dbg_itype_none)
RaiseException(DEBUG_STATUS_BAD_TYPE, 0, 0, NULL);
+#if 0
cexp[i] = types_extract_as_integer(&exp1);
+#endif
}
/*
--
1.7.2.2
More information about the wine-patches
mailing list