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

Fariborz Jahanian fjahanian at apple.com
Fri Jun 5 18:18:11 PDT 2009


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

- Fariborz




More information about the cfe-commits mailing list