AW: Re: Digest from [email protected]
"Mark Butcher" <[email protected]> Sun, 14 Sep 2008 22:57:40 +0200
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Message-ID | <000901c916ac$871f6f20$955e4d60$@com> |
Hi Bob Just a side note. I work with several compilers and the CW warnings are in fact quite extreme and I do in fact keep them off since otherwise the casting required also becomes rather extreme. My solution is to compile the project with GCC and Visual-Studio C-compilers and ensure that they don't give any warnings - assuming that this is the case, then I am satisfied. Regards Mark -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Robert Ritchey Gesendet: Sonntag, 14. September 2008 16:44 An: [email protected] Betreff: [ColdFire] Re: Digest from [email protected] Hi Mark, Thank you very much for the detailed explanation. Its very clear now. I think with this help I can make some informed decisions on how to declare variable types. At 12:00 AM 9/14/2008 -0500, you wrote: >From: "Mark Butcher" <[email protected]> >To: <[email protected]> >Subject: AW: [ColdFire] CodeWarrior Question >Date: Sat, 13 Sep 2008 21:21:47 +0200 >Message-ID: <000001c915d5$f7851080$e68f3180$@com> >Content-Type: text/plain; > charset="iso-8859-1" >Sender: [email protected] >Reply-To: [email protected] > >Hi Bob > >You can disable such warning by deactivating "implicit arithmetic >conversions" in "Language Settings+ -> "C/C++ warnings". > >... >Regards >Mark >www.uTasker.com > >-----Ursprüngliche Nachricht----- >Auftrag von Robert Ritchey >Gesendet: Samstag, 13. September 2008 17:29 >An: [email protected] >Betreff: [ColdFire] CodeWarrior Question > >Hi, >I am new to CodeWarrior and pretty green in C so I hope this is not >a totally naive question. I have some code that takes two shorts and >... Thanks, > >typedef struct > { > short RiseEdge; /* Pulse rising >edge time */ > short FallEdge; /* Pulse >falling edge time */ > } ChanInStruct; > >bool TxPulseOffset(short *Offset) >{ > short PulseWidth; > /* Pulse width */ > PulseWidth = (short)(pRxChannelInput->FallEdge - >pRxChannelInput->RiseEdge); /* Pulse width is falling minus rising */ >} >At 12:04 AM 9/13/2008 -0500, you wrote: >-------------------------------------------------------------------- >Robert Ritchey >Quest Engineering & Development, Inc. -Bob -------------------------------------------------------------------- Robert Ritchey Quest Engineering & Development, Inc. Suite B/8 6125 South Ash Avenue Tempe, AZ 85283 Tel: (480) 460-2652 FAX: (480) 460-2653 E-Mail: [email protected] E-Mail: [email protected] E-Mail: [email protected] E-Mail: [email protected] WWW: www.QuestEngDev.com/ WWW: www.Smart-Fly.com/ -------------------------------------------------------------------- --- [email protected] Send a post to the list. [email protected] Join the list. [email protected] Join the list in digest mode. [email protected] Leave the list. --- [email protected] Send a post to the list. [email protected] Join the list. [email protected] Join the list in digest mode. [email protected] Leave the list.