public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/4676: Warning when casting to a __stdcall function pointer
@ 2001-10-25 16:27 benjamin.riefenstahl
0 siblings, 0 replies; 2+ messages in thread
From: benjamin.riefenstahl @ 2001-10-25 16:27 UTC (permalink / raw)
To: gcc-gnats
>Number: 4676
>Category: c
>Synopsis: Warning when casting to a __stdcall function pointer
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 25 16:26:19 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: benjamin.riefenstahl@epost.de
>Release: gcc-3.0.1
>Organization:
>Environment:
Cygwin, Windows 2000
>Description:
The attached code gets me a warning on the indicated line. All
other lines compile o.k. The code compiles o.k. in C++ mode.
(Note: "__stdcall" is a predefined macro for
"__attribute__(stdcall)", so in gcc terms this is a problem
with function attributes.)
> >>>>>>>>>>
int __stdcall func( void );
int (__stdcall * func_ptr)( void ) = func;
// warning: initialization from incompatible pointer type
int (__stdcall * func_ptr2)( void ) = (int (__stdcall *)( void )) 0;
typedef int (__stdcall * func_type)( void );
func_type func_ptr3 = (func_type) 0;
<<<<<<<<<<<
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c/4676: Warning when casting to a __stdcall function pointer
@ 2002-04-26 1:31 rth
0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-26 1:31 UTC (permalink / raw)
To: benjamin.riefenstahl, gcc-bugs, gcc-prs, nobody
Synopsis: Warning when casting to a __stdcall function pointer
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Fri Apr 26 01:30:53 2002
State-Changed-Why:
Fixed for gcc 3.1.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4676
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-26 8:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-25 16:27 c/4676: Warning when casting to a __stdcall function pointer benjamin.riefenstahl
2002-04-26 1:31 rth
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 read-only IMAP folder(s) and NNTP newsgroup(s).