linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Polino <aluink@gmail.com>
To: fundu_1999@yahoo.com
Cc: linux-c-programming@vger.kernel.org
Subject: Re: warning: ‘struct ’ declared inside parameter list
Date: Sat, 14 Feb 2009 21:20:04 -0500	[thread overview]
Message-ID: <b21328ed0902141820jc23e299q2cc1163da6c02a38@mail.gmail.com> (raw)
In-Reply-To: <875251.26275.qm@web63406.mail.re1.yahoo.com>

"None are more hopelessly enslaved than those who falsely believe they
are free."
                                      --Goethe

"Freedom is living without government coercion."
                   --Ron Paul (www.ronpaul2008.com)



On Sat, Feb 14, 2009 at 20:16, Fundu <fundu_1999@yahoo.com> wrote:
> 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);
void send_req(struct query_resp_type* 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
>

  reply	other threads:[~2009-02-15  2:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-15  1:16 warning: ‘struct ’ declared inside parameter list Fundu
2009-02-15  2:20 ` Eric Polino [this message]
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=b21328ed0902141820jc23e299q2cc1163da6c02a38@mail.gmail.com \
    --to=aluink@gmail.com \
    --cc=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 NNTP newsgroup(s).