Hmm, and you didn't unsubscribe from this mailing list? Interesting! -Dave
-- Dave McGuire Port Charlotte, FL On Oct 12, 2010, at 10:39 AM, "Gabbay, Dan" <dgab...@curtisswright.com> wrote: > I was going through similar kind of problems and eventually decided to > spend around $2000 and buy a descent compiler... > Good-luck > Dan > > > > -----Original Message----- > From: George Oikonomou [mailto:g.oikono...@lboro.ac.uk] > Sent: October 12, 2010 10:29 AM > To: sdcc-user@lists.sourceforge.net > Subject: [Sdcc-user] Void Pointer Arithmetic Warnings > > Hi all. > > I'm trying to port some pre-existing code to sdcc for 8051. In some > files, > the original code uses gcc-style void * arithmetic, similar to this: > > static unsigned short foo[15]; > > void funct() { > void * ptr; > > ptr = foo; /* ptr is X:0xe01a */ > > /* do something */ > > ptr = (void *)foo + 1; /* ptr is still X:0xe01a */ > } > > Please correct me if I'm wrong but I would expect this code to cause > warning > 178: size of void is zero. Correct? > sdcc doesn't produce a warning, while gcc -Wpointer-arith does. > > Needless to say, the code does not achieve what the developer originally > > intended, which makes things hard for me to debug. So my question here > is, > is there a way to turn on a warning for this scenario? > > Thanks for any tips all. > Regards > geo > > > ------------------------------------------------------------------------ > ------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > ______________________________________________________________________ > > _______________________________________________________________________ > This e-mail and any files transmitted with it are proprietary and intended > solely for the use of the individual or entity to whom they are addressed. If > you have reason to believe that you have received this e-mail in error, > please notify the sender and destroy this email and any attached files. > Please note that any views or opinions presented in this e-mail are solely > those of the author and do not necessarily represent those of the > Curtiss-Wright Corporation or any of its subsidiaries. Documents attached > hereto may contain technology subject to government export regulations. > Recipient is solely responsible for ensuring that any re-export, transfer or > disclosure of this information is in accordance with applicable government > export regulations. The recipient should check this e-mail and any > attachments for the presence of viruses. Curtiss-Wright Corporation and its > subsidiaries accept no liability for any damage caused by any virus > transmitted by this e-mail. > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user