Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpl-opus!hpnmdla!dan From: dan@hpnmdla.HP.COM (Dan Pleasant) Newsgroups: comp.sys.mac.programmer Subject: Annoying MPW C++ warning Message-ID: <450014@hpnmdla.HP.COM> Date: 17 Dec 90 17:24:07 GMT Organization: HP Network Measurements Div, Santa Rosa, CA Lines: 28 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. I'd like to get rid of the warning message for no other reason than the fact that it's annoying. Does anybody know how to eliminate this warning (without turning off all other warnings at the same time)? [Note: Nitpickers will probably point out that the warning goes away if you use SetRect() here instead of setting each rect element one at a time. But that doesn't solve the problem in a general case -- the structure in this example doesn't have to be a Rect.] Thanks in advance to one and all! Dan Pleasant