On Mon, Aug 22, 2011 at 8:23 AM, Carlson Gary
<gcarl...@carlson-minot.com> wrote:
> [...]
> I seem to have a faint recollection that a few non-gnu compilers don't
> always support "%p" as a formatting code.

Hummmm...
I run a quick and not exhaustive check.
%p is part of ANSI C, at least in latest versions. Cannot find when it
was introduced.
New compilers should support it.

Rev 2007 of the standard reports:
 - The argument shall be a pointer to void. The value of the pointer
is converted to a sequence of printing characters, in an
implementation-defined manner.

With gcc I get a warning if I compile with "-Wall -ansi -pedantic".
So, cast to void pointer could be required by some compiler.

Best Regards
Antonio Borneo
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to