PATCH: programs/winedbg/gdbproxy.c
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Mon Oct 14 00:27:54 CDT 2002
I hope this is acceptable?
Gerald
ChangeLog:
Add a dummy return to hex_from0() to silence a warning and make the
code more robust.
Index: gdbproxy.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/gdbproxy.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 gdbproxy.c
--- gdbproxy.c 13 Sep 2002 17:54:28 -0000 1.1
+++ gdbproxy.c 14 Oct 2002 05:26:26 -0000
@@ -105,7 +105,9 @@ static inline int hex_from0(char ch)
if (ch >= '0' && ch <= '9') return ch - '0';
if (ch >= 'A' && ch <= 'F') return ch - 'A' + 10;
if (ch >= 'a' && ch <= 'f') return ch - 'a' + 10;
+
assert(0);
+ return 0;
}
static inline unsigned char hex_to0(int x)
More information about the wine-patches
mailing list