This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14333] __stdcall in function declaration in structure ignored?


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]