lkml.org 
[lkml]   [2011]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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/


\
 
 \ /
  Last update: 2011-07-27 19:59    [W:0.776 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site