Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!samsung!munnari.oz.au!comp.vuw.ac.nz!actrix!Bruce.Hoult From: Bruce.Hoult@bbs.actrix.gen.nz Newsgroups: comp.sys.mac.programmer Subject: Re: Annoying MPW C++ warning Summary: mine doesn't Message-ID: <1990Dec19.102837.2466@actrix.gen.nz> Date: 19 Dec 90 10:28:37 GMT References: <450014@hpnmdla.HP.COM> Sender: Bruce.Hoult@actrix.gen.nz (Bruce Hoult) Organization: Actrix Information Exchange, Wellington, New Zealand Lines: 25 Comment-To: dan@hpnmdla.HP.COM Dan Pleasant writes: >Does anyone know how to eliminate this annoying warning message in >MPW C++? > >void foo() >{ > Rect r, r2; > > r.left = 1; > r.right = 2; > r.bottom = 3; > r.top = 4; > > r2 = r; >} > >CFront gives a "variable 'r' used before set" warning for this code. Mine doesn't (MPW CFront 1.0). Once I #include , of course. -- Bruce.Hoult@bbs.actrix.gen.nz Twisted pair: +64 4 772 116 BIX: brucehoult Last Resort: PO Box 4145 Wellington, NZ