On 6/28/07, John Temples wrote: > On Thu, 28 Jun 2007, William Chops Westfield wrote: > > >>> My last complaint was about: > >>> > >>> char g_md_buffered[9]={"", "", "", "", "", "", > >>> "", "", ""}; > >> > > It's apparently not incorrect C (this claim sparked some > > discussion), though I would have hoped > > that the picker static analysis tools would have complained > > that it didn't look "right." I only found it cause I was > > using a fussier compiler. > > Yes, it is legal C, even though the results are meaningless. The > author was unbelievably lucky if that array was initialized with > zeros, if that was the intent. > > I threw that code at several compilers and static analysis tools, and > even the most brain-dead issued a warning. Which compiler let that > slide silently? > I think the more egregious problem is the one on the left side of the '=' -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist