[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.1107271947490.7435@axis700.grange>
Date: Wed, 27 Jul 2011 19:57:40 +0200 (CEST)
From: Guennadi Liakhovetski <g.liakhovetski@....de>
To: linux-kernel@...r.kernel.org
Subject: [Q] compiler no longer warning about undeclared struct?
Hi
I just ran across a driver in the kernel (drivers/media/video/ov2640.c,
struct ov2640_priv::info), that does something like
struct xx {
struct yy *y;
};
static void z(void)
{
struct xx *x;
void *p;
x = ...;
p = ...;
x->y = p;
}
where "struct yy" is nowhere declared, and the compiler happily swallows
this... Shouldn't it complain? Didn't it complain before?
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists