T开发者_Python百科he following C/C++ code results in an Unused Entity Issue with XCode 4 (Clang LLVM).
void stringMethod(const char *string){
while(*string!=0){
*string++;
//...
}
}
Its on that line: *string++; so it seems like clang didnt realize that the pointer address is increased? I don't get, how to adjust this code... Any ideas?
Try to remove the dereferencing operator *
, you don't need to dereference the pointer when you increase it.
精彩评论