> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Bob Blick > Sent: 08 March 2008 21:19 > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] Mixing MPASM and C (Hi-Tech PICC) > > I guess my point is that letting a statement like this pass without > warning: > > if (x = 9) > > is just one more thing I don't like about Hi-Tech I'd be quite upset if that passed without any warning, but having just tried a quick example project for both 16F and 18F targets both give a warning for me. The compiler versions I have are fairly old however, maybe the newer ones are broken? On the contrary one of the major annoyances (to me) was that perfectly innocuous code could produce multiple warnings, making it hard to sort the wheat from the chaff. E.g. the traditional do{ ... } while(0) used to make a multi-line macro safe would raise 3 or 4 warnings wherever the macro was invoked. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist