This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24727] type "const void *" produces a warning when promoting to "void *"
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2005 00:07:43 -0000
- Subject: [Bug c/24727] type "const void *" produces a warning when promoting to "void *"
- References: <bug-24727-11675@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from schwab at suse dot de 2005-11-08 00:07 -------
The warning is correct. The type of x_write is incompatible with x_io, because
"const void *" is incompatible with "void *". Argument promotion does not come
into play here.
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24727