------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-09 
19:29 -------
Since you did not give a prototype of strlen (by including string.h), the C 
standard talks about implicit 
functions prototype and gives in this case strlen a prototype that takes a 
function type.

If you include string.h you will get a warning about incompatiable pointers 
which is what GCC emits as 
GCC has an extension that implicitly converts any pointer to another without a 
cast.  If you want an 
error in that case use -pedantic-error.

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


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

Reply via email to