Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のC/C ++コードは、XCode 4(Clang LLVM)で未使用のエンティティの問題を引き起こします。
void stringMethod(const char *string){ while(*string!=0){ *string++; //... } }
その行に:* string ++; それで、clangはポインタアドレスが増加していることに気づかなかったようですか?このコードを調整する方法がわかりません...何かアイデアはありますか?
間接参照演算子を削除してみてください*。ポインターを増やすときに、ポインターを逆参照する必要はありません。
*