This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14333] __stdcall in function declaration in structure ignored?
- From: "buytenh at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2004 16:22:19 -0000
- Subject: [Bug c/14333] __stdcall in function declaration in structure ignored?
- References: <20040228144104.14333.buytenh@gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From buytenh at gnu dot org 2004-02-28 16:22 -------
Subject: Re: __stdcall in function declaration in structure ignored?
Sorry, that is a no go.
% cat x.c
static void __stdcall example_func(void)
{
}
struct {
void (*__stdcall example_method)(void);
} y = {
.example_method = example_func,
};
int main()
{
return 0;
}
% i386-mingw32-gcc -o x x.c
x.c:8: warning: initialization from incompatible pointer type
On Sat, Feb 28, 2004 at 03:30:57PM -0000, schwab at suse dot de wrote:
>
> ------- Additional Comments From schwab at suse dot de 2004-02-28 15:30 -------
> Move __stdcall to the correct place.
>
> struct {
> void (*__stdcall example_method)(void);
> } y = {
> .example_method = example_func,
> };
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> Resolution| |INVALID
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14333
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14333