From: Fundu <fundu_1999@yahoo.com>
To: linux-c-programming@vger.kernel.org
Subject: warning: ‘struct ’ declared inside parameter list
Date: Sat, 14 Feb 2009 17:16:42 -0800 (PST) [thread overview]
Message-ID: <875251.26275.qm@web63406.mail.re1.yahoo.com> (raw)
i'm running ubuntu 8.04 with gcc-4.2
and i'm getting
mb_con.h:43: warning: ‘struct query_resp’ declared inside parameter list
mb_con.h:43: warning: its scope is only this definition or declaration, which is probably not what you want
here's a snippet of how .h file looks
struct query_resp_type
{
int type;
} query_resp;
void send_req(struct query_resp* resp);
what i don't understand is why this warning when i have declared the struct before the function in the header.
what am i missing ?
thanks in advance !
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2009-02-15 1:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-15 1:16 Fundu [this message]
2009-02-15 2:20 ` warning: ‘struct ’ declared inside parameter list Eric Polino
2009-02-16 17:03 ` ben
2009-02-17 2:30 ` Fundu
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=875251.26275.qm@web63406.mail.re1.yahoo.com \
--to=fundu_1999@yahoo.com \
--cc=linux-c-programming@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).