Warningに"format not a string literal and no format arguments"と出る

NSErrorからlocalizedDescriptionを呼び出して、それをNSLog(LOGマクロ)に投げると、

ワーニングに次のような文章が出る。

LOG([NSError localizedDescription]);
format not a string literal and no format arguments
LOG((@"%@",[NSError localizedDescription]);

これでwarning出ません。

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS