Hello, this was found by smatch's code_after_ret.pl script. License: LGPL, X11 Changelog: Michael Stefaniuc <mstefani@redhat.com> - remove dead code after return or properly comment it out bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 System Administration Fax.: +49-711-96437-111 Red Hat GmbH Email: mstefani@redhat.com Hauptstaetterstr. 58 http://www.redhat.de/ D-70178 Stuttgart
Index: dlls/ole32/rpc.c =================================================================== RCS file: /home/wine/wine/dlls/ole32/rpc.c,v retrieving revision 1.8 diff -u -r1.8 rpc.c --- dlls/ole32/rpc.c 7 Jan 2003 20:36:27 -0000 1.8 +++ dlls/ole32/rpc.c 6 Feb 2003 00:14:06 -0000 @@ -100,8 +100,7 @@ drs(LPCSTR where) { int i, states[10]; - return ; - +#if 0 memset(states,0,sizeof(states)); for (i=nrofreqs;i--;) states[reqs[i]->state]++; @@ -116,6 +115,9 @@ states[REQSTATE_RESP_GOT], states[REQSTATE_DONE] ); +#endif + + return ; } static HRESULT WINAPI Index: dlls/msvcrt/mbcs.c =================================================================== RCS file: /home/wine/wine/dlls/msvcrt/mbcs.c,v retrieving revision 1.24 diff -u -r1.24 mbcs.c --- dlls/msvcrt/mbcs.c 1 Feb 2003 00:59:22 -0000 1.24 +++ dlls/msvcrt/mbcs.c 6 Feb 2003 00:14:06 -0000 @@ -425,7 +425,6 @@ cmp += clen; } return 0; /* Matched len chars */ - FIXME("%s %s %d\n",str,cmp,len); } return strncmp(str,cmp,len); } @@ -499,7 +498,6 @@ cmp += clen; } return 0; /* Matched len bytes */ - FIXME("%s %s %d\n",str,cmp,len); } return strncmp(str,cmp,len); }
Attachment:
pgp00103.pgp
Description: PGP signature