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/52617] -Wconversion does not work for strlen


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-19 14:50:34 UTC ---
You should get two warnings if you use -fno-builtin

But do you really want it? The compiler is smart enough to know that
strlen("bla") returns 3 so the warning would be wrong.


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