- Subject: warning: ‘struct ’ declared inside parameter list
- From: Fundu <fundu_1999@xxxxxxxxx>
- Date: Sat, 14 Feb 2009 17:16:42 -0800 (PST)
- List-id: <linux-c-programming.vger.kernel.org>
- Reply-to: fundu_1999@xxxxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Assembler]
[Git]
[Kernel List]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[Yosemite Campsites]
[Yosemite News]
[GCC Help]