On Thu, Mar 14, 2019 at 10:08:55AM -0600, Martin Sebor wrote: > What solution would you like to see for these (pointer vs integer) > mismatches?
For GCC 9, I'd probably like most adding the similar pointer vs. non-pointer test to the return value like there is for the arguments, unless there is some deep reason why the return value is special. But we aren't talking about implicit declarations and even when it is not a prototype, I think if somebody writes char *strlen (); he must assume we'll not try to optimize his code. The warning would be still there when one enables it. Jakub