winedbg: Avoid a compiler warning about "use of uninitialized" in in types_extract_as_longlong.
Gerald Pfeifer
gerald at pfeifer.com
Sat Aug 23 17:40:56 CDT 2014
This is something clang 3.4 (on FreeBSD) complains about, so let's
initialize this variable here despite RaiseException.
Gerald
---
programs/winedbg/types.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 03c69ab..e13c9d2 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -123,7 +123,7 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
default:
WINE_FIXME("Unsupported tag %u\n", tag);
RaiseException(DEBUG_STATUS_NOT_AN_INTEGER, 0, 0, NULL);
- break;
+ rtn = 0L;
}
return rtn;
--
2.0.2
More information about the wine-patches
mailing list