dlls/cabinet: fix dead stores (llvm/clang)

ricardo filipe ricardo_barbano at hotmail.com
Tue Nov 18 06:31:54 CST 2008


> Date: Tue, 18 Nov 2008 10:17:46 +0100> From: meissner at suse.de> To: dmitry at codeweavers.com> CC: ricardo_barbano at hotmail.com; wine-devel at winehq.org> Subject: Re: dlls/cabinet: fix dead stores (llvm/clang)> > On Tue, Nov 18, 2008 at 03:11:52PM +0800, Dmitry Timoshkov wrote:> > "ricardo filipe" <ricardo_barbano at hotmail.com> wrote:> > > > > --- a/dlls/cabinet/fci.c> > > +++ b/dlls/cabinet/fci.c> > > @@ -462,7 +462,7 @@ static cab_ULONG fci_get_checksum(const void *pv, UINT cb, CHECKSUM seed)> > > case 2:> > > ul |= (((ULONG)(*pb++)) << 8);> > > case 1:> > > - ul |= *pb++;> > > + ul |= *pb;> > > default:> > > break;> > > }> > > > Is there any reason that you ignored 2 similar cases above?> > Yes, because it would be wrong ... Its a Duffs Device, falling through> to the last case. The other pb++ are necessary.> > Ciao, Marcus
 
yes only the last one is dead. although i have to ask you guys, today i think i messed up on this one and it's a false positive, because at the beggining pb = pv.
so it will affect the pv and this shouldn't be applied right?
_________________________________________________________________
Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger!
http://www.amigosdomessenger.com.br/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20081118/f6165a6e/attachment-0001.htm 


More information about the wine-devel mailing list