[Bug c++/35233] Unexpected error messages about invalid pointer conversions at end of array initialisation

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 17 14:27:00 GMT 2008



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-02-17 14:26 -------
The problem is here:

sipp.cpp(137): error: a value of type "const char *const *" cannot be used to
initialize an entity of type "void *"
   {"cid_str", "Call ID string (default %u-%p@%s).  %u=call_number,
%s=ip_address, %p=process_number, %%=% (in any order).", 5, &call_id_string,
1},
                                                                               
                                                ^

sipp.cpp(247): error: a value of type "const char *const *" cannot be used to
initialize an entity of type "void *"
   {"stat_delimiter", "Set the delimiter for the statistics file", 5,
&stat_delimiter, 1},

just add casts to (void *) after taking the addresses.

Also please use the gcc-help@ list for such questions, not bugzilla.

Thanks.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35233



More information about the Gcc-bugs mailing list