PATCH: dlls/dbghelp/storage.c tweako

Gerald Pfeifer gerald at pfeifer.com
Tue Apr 6 01:22:09 CDT 2004


Perhaps this should be handled differently (ERR?), but without this
patch it's even non-deterministic if compiled with debugging disabled:

  storage.c:206: warning: control reaches end of non-void function

Gerald

ChangeLog:
Avoid compiler warning in vector_position().
Index: storage.c
===================================================================
RCS file: /home/wine/wine/dlls/dbghelp/storage.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 storage.c
--- storage.c	5 Apr 2004 22:21:27 -0000	1.1
+++ storage.c	6 Apr 2004 06:19:56 -0000
@@ -203,6 +203,7 @@ static unsigned vector_position(const st
         }
     }
     assert(0);
+    return 0;
 }

 void* vector_iter_up(const struct vector* v, void* elt)



More information about the wine-patches mailing list