This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/22389] strlen from Function possible


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]