linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* warning: ‘struct ’ declared inside parameter list
@ 2009-02-15  1:16 Fundu
  2009-02-15  2:20 ` Eric Polino
  2009-02-16 17:03 ` ben
  0 siblings, 2 replies; 4+ messages in thread
From: Fundu @ 2009-02-15  1:16 UTC (permalink / raw)
  To: linux-c-programming

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-17  2:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15  1:16 warning: ‘struct ’ declared inside parameter list Fundu
2009-02-15  2:20 ` Eric Polino
2009-02-16 17:03 ` ben
2009-02-17  2:30   ` Fundu

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 NNTP newsgroup(s).