PATCH: Silence compiler warning in server/fd.c

Gerald Pfeifer gerald at pfeifer.com
Fri Apr 20 06:11:54 CDT 2007


In theory compilers/system headers should be able to handle assert() 
properly, but practically with GCC 3.4 and others on FreeBSD and openSUSE
they don't.

Gerald

ChangeLog:
Silence compiler warning in fd_queue_async().

Index: fd.c
===================================================================
RCS file: /home/wine/wine/server/fd.c,v
retrieving revision 1.102
diff -u -3 -p -r1.102 fd.c
--- fd.c	19 Apr 2007 10:25:18 -0000	1.102
+++ fd.c	20 Apr 2007 11:10:15 -0000
@@ -1735,6 +1735,7 @@ struct async *fd_queue_async( struct fd 
         queue = fd->wait_q;
         break;
     default:
+        queue = 0;
         assert(0);
     }
 



More information about the wine-patches mailing list