On Thu, 26 Apr 2012 at 20:26 GMT, Zhu Qun-Ying <
zhu.q...@gmail.com> wrote:
>
> No warning at all. Should gcc warn about the *next pointer points to an
> unknown structure? I know it is allow by the standard, but most of the
> case, it indicates some error in the code.
Why? What errors? As long as you don't defreference (or increase) it,
the type it points to doesn't have to be known, it just a pointer which
is same with 'unsigned long' at bits level, on most of the arch.
Actually, there is a perfect use-case of this, which is called opaque
pointer, see:
http://en.wikipedia.org/wiki/Opaque_pointer.