PATCH: programs/winedbg/gdbproxy.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux