On Mon, Aug 13, 2012 at 3:07 PM, Vaclav Peroutka <[email protected]> wrote: > Hello Joerg, > >> Am 13.08.2012 12:48, schrieb jaydip aghera: >>> I am using cygwin > >>> ./configure >>> [... compiler warning => error ...] > >> Add the "--disable-werror" option to "./configure". >> It needs some other options, too: Which type of Debugger(s) do you want >> to use? Few are enabled by default. > >> A better starting point for Windows users are the inofficial binaries >> at: http://www.freddiechopin.info/en/download/category/10-openocd-dev > > please refer to this topic: > http://sourceforge.net/mailarchive/forum.php?thread_name=316532.10108.21118-12786-1239406090-1339505685%40seznam.cz&forum_name=openocd-devel > > I had the same problem on newest Ubuntu. One comment was that there was a > "nasty cast". But nobody fixed it yet. > > Vaclav >
Anyone affected should try http://openocd.zylin.com/779 and post feedback. I obviously don't get the warning so I can't tell if it helps. It should. This code makes my eyes bleed and the patch does not attempt to change that. It only fixes the warning. The is_armv7m(target_to_armv7m(target)) stuff has UNDEFINED BEHAVIOR written all over it. That needs to be fixed... sometime. The cfi code is odd in that it is architecture independent code that utterly depends on the target architecture. It totally messes up the class hierarchy. If I would rewrite it (which I have no intention of doing, so please stop me) I'd write the flash algorithms in bytecode and write a separate bytecode interpreter for each target. That would be fun. /Andreas ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
