[Bug c/24727] type "const void *" produces a warning when promoting to "void *"

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Tue Nov 8 00:07:00 GMT 2005



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



More information about the Gcc-bugs mailing list