[cfe-commits] Warning about <strings.h>

Eli Friedman eli.friedman at gmail.com
Fri Jun 5 18:56:53 PDT 2009


On Fri, Jun 5, 2009 at 6:39 PM, Eli Friedman<eli.friedman at gmail.com> wrote:
> On Fri, Jun 5, 2009 at 6:18 PM, Fariborz Jahanian<fjahanian at apple.com> wrote:
>> % cat test.m
>> #include <objc/Object.h>
>>
>> % clang-cc -fsyntax-only test.m
>> warning: implicitly declaring C library function 'index' with type
>> 'char *(char const *, int)'
>> note: please include the header <strings.h> or explicitly provide a
>> declaration for 'index'
>> 2 diagnostics generated.
>>
>> I am getting this warning all over the place. Looks like a bug has
>> been introduce in the past few hours.
>
> r72882 is the checkin to blame, I think, but I'm not sure why it's messing up.
>
> What the heck is up with that warning?  It doesn't have location information!

Okay, I found the issue; I'll commit a fix as soon as my build
finishes and I run the regression tests.

-Eli




More information about the cfe-commits mailing list