From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: [Q] compiler no longer warning about undeclared struct?
Date: Wed, 27 Jul 2011 19:57:40 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.1107271947490.7435@axis700.grange> (raw)
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/
next reply other threads:[~2011-07-27 17:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 17:57 Guennadi Liakhovetski [this message]
2011-07-28 10:03 ` Bernd Petrovitsch
2011-07-28 10:16 ` Guennadi Liakhovetski
2011-07-28 11:08 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.1107271947490.7435@axis700.grange \
--to=g.liakhovetski@gmx.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®